[BUG] channel with key handling

A bug existed when a client issued join commands with multiple keys:
JOIN #a,#b keya,keyb
which this patch fixes
This commit is contained in:
Arnaud Cornet 2009-01-10 12:53:25 +01:00
parent d2f7840ced
commit 67ddf15264
1 changed files with 2 additions and 1 deletions

View File

@ -1012,9 +1012,10 @@ static int irc_cli_join(struct link_client *irc, struct line *line)
kp[klen] = 0;
if (*ke == 0)
ks = NULL;
} else
} else {
kp = NULL;
ks = NULL;
}
}
irc_add_channel_info(LINK(irc)->l_server, p, kp);