From 67ddf152647e178d97359907782375d30586ca5f Mon Sep 17 00:00:00 2001 From: Arnaud Cornet Date: Sat, 10 Jan 2009 12:53:25 +0100 Subject: [PATCH] [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 --- src/irc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/irc.c b/src/irc.c index 870acbf..13b9b0d 100644 --- a/src/irc.c +++ b/src/irc.c @@ -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);