mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -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:
parent
b3f988bf16
commit
62473e354f
@ -214,8 +214,10 @@ void parse_channel_modes(IRC_CHANNEL_REC *channel, const char *setby,
|
||||
expecting argument, ignore the mode if there's
|
||||
no argument (shouldn't happen). */
|
||||
arg = cmd_get_param(&modestr);
|
||||
if (*arg == '\0')
|
||||
if (*arg == '\0') {
|
||||
curmode++;
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
arg = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user