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

If mode didn't have the expected argument irssi would loop forever.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@722 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-10-07 15:12:50 +00:00 committed by cras
parent b3f988bf16
commit 62473e354f

View File

@ -214,8 +214,10 @@ void parse_channel_modes(IRC_CHANNEL_REC *channel, const char *setby,
expecting argument, ignore the mode if there's expecting argument, ignore the mode if there's
no argument (shouldn't happen). */ no argument (shouldn't happen). */
arg = cmd_get_param(&modestr); arg = cmd_get_param(&modestr);
if (*arg == '\0') if (*arg == '\0') {
curmode++;
continue; continue;
}
} else { } else {
arg = NULL; arg = NULL;
} }