summaryrefslogtreecommitdiff
path: root/src/fe-text/statusbar-items.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-06-01 16:49:19 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-06-01 16:49:19 +0000
commit9bbd2847218700fcce6a795c93b4e49508dbf892 (patch)
tree6adf768ce6b191e0184a47030d3af0e46261cdaf /src/fe-text/statusbar-items.c
parent6046bf4c5bd9c0c5047269bf690eed03a6848b0b (diff)
downloadirssi-9bbd2847218700fcce6a795c93b4e49508dbf892.zip
/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
Diffstat (limited to 'src/fe-text/statusbar-items.c')
-rw-r--r--src/fe-text/statusbar-items.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/fe-text/statusbar-items.c b/src/fe-text/statusbar-items.c
index 8e4a3420..a19232d2 100644
--- a/src/fe-text/statusbar-items.c
+++ b/src/fe-text/statusbar-items.c
@@ -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();
}