mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 07:32:04 +02: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
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue