summaryrefslogtreecommitdiff
path: root/src/fe-common/irc
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-06-01 17:08:30 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-06-01 17:08:30 +0000
commit6233d6d9bfafd1b630ae97e18ae3f75ea26ee266 (patch)
treee4d92bf97bb21da3714dfbf89101822b39c634a4 /src/fe-common/irc
parent7a255bf83930a317914c07e1ac37f2ca47072042 (diff)
downloadirssi-6233d6d9bfafd1b630ae97e18ae3f75ea26ee266.zip
Leaving from some channel didn't update status bar.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@261 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/irc')
-rw-r--r--src/fe-common/irc/fe-channels.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-common/irc/fe-channels.c b/src/fe-common/irc/fe-channels.c
index 6403412a..272f954c 100644
--- a/src/fe-common/irc/fe-channels.c
+++ b/src/fe-common/irc/fe-channels.c
@@ -87,7 +87,8 @@ static void sig_disconnected(IRC_SERVER_REC *server)
static void signal_window_item_changed(WINDOW_REC *window, WI_ITEM_REC *item)
{
- g_return_if_fail(item != NULL);
+ g_return_if_fail(window != NULL);
+ if (item == NULL) return;
if (g_slist_length(window->items) > 1 && irc_item_channel(item)) {
printformat(item->server, item->name, MSGLEVEL_CLIENTNOTICE,