Channel modes: 'Type B' flags always have a value

even when removed.
Refs #345
This commit is contained in:
Pierre-Louis Bonicoli 2014-09-03 02:18:02 +02:00
parent d2fa844960
commit e0b63528f2
1 changed files with 1 additions and 1 deletions

View File

@ -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':