diff options
author | Timo Sirainen <cras@irssi.org> | 2000-10-07 15:12:50 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-10-07 15:12:50 +0000 |
commit | 62473e354fbe4ae766667c3245fb4d1b8af87411 (patch) | |
tree | aca15da65eb9500badb11aff18e1d8e8c3db1222 /src | |
parent | b3f988bf1633b5e14c08286c096ae793ae559312 (diff) | |
download | irssi-62473e354fbe4ae766667c3245fb4d1b8af87411.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/core/modes.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/irc/core/modes.c b/src/irc/core/modes.c index 80381789..057a9c4f 100644 --- a/src/irc/core/modes.c +++ b/src/irc/core/modes.c @@ -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; } |