mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 15:12:11 +02: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:
parent
015612c59a
commit
634dfd41e8
1 changed files with 2 additions and 3 deletions
|
|
@ -245,7 +245,7 @@ static void sig_message_quit(SERVER_REC *server, const char *nick,
|
||||||
once = settings_get_bool("show_quit_once");
|
once = settings_get_bool("show_quit_once");
|
||||||
|
|
||||||
count = 0; windows = NULL;
|
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) {
|
for (tmp = server->channels; tmp != NULL; tmp = tmp->next) {
|
||||||
CHANNEL_REC *rec = tmp->data;
|
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,
|
count <= 1 ? IRCTXT_QUIT : IRCTXT_QUIT_ONCE,
|
||||||
nick, address, reason, chans->str);
|
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,
|
static void sig_message_kick(SERVER_REC *server, const char *channel,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue