aboutsummaryrefslogtreecommitdiffstats
path: root/irc_commands.c
diff options
context:
space:
mode:
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] );
}