mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 21:00:40 +02:00
/topic -d [#channel] clears the topic.
When topic cleared, the topic bar wasn't refreshed immediately. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@258 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
6046bf4c5b
commit
9bbd284721
2 changed files with 13 additions and 10 deletions
|
|
@ -590,13 +590,14 @@ static void statusbar_topic(SBAR_ITEM_REC *item, int ypos)
|
|||
query = irc_item_query(active_win->active);
|
||||
if (channel != NULL && channel->topic != NULL) topic = channel->topic;
|
||||
if (query != NULL && query->address != NULL) topic = query->address;
|
||||
if (topic == NULL) return;
|
||||
|
||||
topic = strip_codes(topic);
|
||||
str = g_strdup_printf("%.*s", item->size, topic);
|
||||
set_color((1<<4)+15); addstr(str);
|
||||
g_free(str);
|
||||
g_free(topic);
|
||||
if (topic != NULL) {
|
||||
topic = strip_codes(topic);
|
||||
str = g_strdup_printf("%.*s", item->size, topic);
|
||||
set_color((1<<4)+15); addstr(str);
|
||||
g_free(str);
|
||||
g_free(topic);
|
||||
}
|
||||
|
||||
screen_refresh();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue