From 62473e354fbe4ae766667c3245fb4d1b8af87411 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 7 Oct 2000 15:12:50 +0000 Subject: 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 --- src/irc/core/modes.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/irc/core/modes.c') 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; } -- cgit v1.2.3