aboutsummaryrefslogtreecommitdiffstats
path: root/irc_commands.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2008-09-28 12:18:19 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2008-09-28 12:18:19 +0100
commit94acdd0d7beaa659a5f6b26673c5dea5dbcc4496 (patch)
treec3b60c834729b4b52d9bc0230dbc7f89a2acb03a /irc_commands.c
parente180c59a7796bb651b96ffaa5757e4688f1d3cc6 (diff)
Restored support for password-protected chatrooms (for now only by accepting
a password in the IRC JOIN command).
Diffstat (limited to 'irc_commands.c')
-rw-r--r--irc_commands.c3
1 files changed, 1 insertions, 2 deletions
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] );
}