1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

quit messages shouldn't crash :)

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1008 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-12-18 14:00:26 +00:00 committed by cras
parent 015612c59a
commit 634dfd41e8

View File

@ -245,7 +245,7 @@ static void sig_message_quit(SERVER_REC *server, const char *nick,
once = settings_get_bool("show_quit_once");
count = 0; windows = NULL;
chans = !once ? NULL : g_string_new(NULL);
chans = g_string_new(NULL);
for (tmp = server->channels; tmp != NULL; tmp = tmp->next) {
CHANNEL_REC *rec = tmp->data;
@ -289,8 +289,7 @@ static void sig_message_quit(SERVER_REC *server, const char *nick,
count <= 1 ? IRCTXT_QUIT : IRCTXT_QUIT_ONCE,
nick, address, reason, chans->str);
}
if (chans != NULL)
g_string_free(chans, TRUE);
g_string_free(chans, TRUE);
}
static void sig_message_kick(SERVER_REC *server, const char *channel,