mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
joining to multiple channels at once crashed
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@182 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
b1e041435e
commit
d769109f57
@ -400,6 +400,7 @@ static void event_end_of_who(const char *data, IRC_SERVER_REC *server)
|
|||||||
|
|
||||||
params = event_get_params(data, 2, NULL, &channel);
|
params = event_get_params(data, 2, NULL, &channel);
|
||||||
|
|
||||||
|
chans = g_strsplit(channel, ",", -1);
|
||||||
onewho = strchr(channel, ',') != NULL;
|
onewho = strchr(channel, ',') != NULL;
|
||||||
if (onewho) {
|
if (onewho) {
|
||||||
/* instead of multiple End of WHO replies we get
|
/* instead of multiple End of WHO replies we get
|
||||||
@ -409,13 +410,12 @@ static void event_end_of_who(const char *data, IRC_SERVER_REC *server)
|
|||||||
|
|
||||||
/* check that the WHO actually did return something
|
/* check that the WHO actually did return something
|
||||||
(that it understood #chan1,#chan2,..) */
|
(that it understood #chan1,#chan2,..) */
|
||||||
chanrec = channel_find(server, channel);
|
chanrec = channel_find(server, chans[0]);
|
||||||
nick = nicklist_find(chanrec, server->nick);
|
nick = nicklist_find(chanrec, server->nick);
|
||||||
if (nick->host == NULL)
|
if (nick->host == NULL)
|
||||||
server->no_multi_who = TRUE;
|
server->no_multi_who = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
chans = g_strsplit(channel, ",", -1);
|
|
||||||
for (n = 0; chans[n] != NULL; n++) {
|
for (n = 0; chans[n] != NULL; n++) {
|
||||||
chanrec = channel_find(server, chans[n]);
|
chanrec = channel_find(server, chans[n]);
|
||||||
if (chanrec == NULL)
|
if (chanrec == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user