From 94acdd0d7beaa659a5f6b26673c5dea5dbcc4496 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sun, 28 Sep 2008 12:18:19 +0100 Subject: Restored support for password-protected chatrooms (for now only by accepting a password in the IRC JOIN command). --- irc_commands.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'irc_commands.c') diff --git a/irc_commands.c b/irc_commands.c index 71a8fb3e..bdca5b24 100644 --- a/irc_commands.c +++ b/irc_commands.c @@ -193,12 +193,11 @@ static void irc_cmd_join( irc_t *irc, char **cmd ) else if( cmd[1] ) { struct chat *c; - user_t *u; if( strchr( CTYPES, cmd[1][0] ) == NULL || cmd[1][1] == 0 ) irc_reply( irc, 479, "%s :Invalid channel name", cmd[1] ); else if( ( c = chat_bychannel( irc, cmd[1] ) ) && c->acc && c->acc->ic ) - chat_join( irc, c ); + chat_join( irc, c, cmd[2] ); else irc_reply( irc, 403, "%s :No such channel", cmd[1] ); } -- cgit v1.2.3