mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
If /SET show_quit_once was set and ignored nick quitted, irssi printed
GLib warning. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@666 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
cb9c32d981
commit
bb20de0d43
@ -275,13 +275,14 @@ static void event_quit(const char *data, IRC_SERVER_REC *server, const char *nic
|
||||
}
|
||||
g_slist_free(windows);
|
||||
|
||||
if (once) {
|
||||
if (once && count > 0) {
|
||||
g_string_truncate(chans, chans->len-1);
|
||||
printformat(server, print_channel, MSGLEVEL_QUITS,
|
||||
count <= 1 ? IRCTXT_QUIT : IRCTXT_QUIT_ONCE,
|
||||
count == 1 ? IRCTXT_QUIT : IRCTXT_QUIT_ONCE,
|
||||
nick, addr, data, chans->str);
|
||||
g_string_free(chans, TRUE);
|
||||
}
|
||||
if (chans != NULL)
|
||||
g_string_free(chans, TRUE);
|
||||
}
|
||||
|
||||
static void event_kick(const char *data, IRC_SERVER_REC *server, const char *kicker, const char *addr)
|
||||
|
Loading…
Reference in New Issue
Block a user