From e0b63528f23a6da3245babf8ae6394b3ab59c3b1 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bonicoli Date: Wed, 3 Sep 2014 02:18:02 +0200 Subject: [PATCH] Channel modes: 'Type B' flags always have a value even when removed. Refs #345 --- src/irc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/irc.c b/src/irc.c index 6f436d5..59e3e54 100644 --- a/src/irc.c +++ b/src/irc.c @@ -1701,13 +1701,13 @@ static int irc_mode(struct link_server *server, struct line *line) channel->key = bip_strdup( irc_line_elem(line, cur_arg + 3)); - cur_arg++; } else { if (channel->key) { free(channel->key); channel->key = NULL; } } + cur_arg++; break; case 'f': case 'j':