From 5a75d1586478f78446b6c78b161572fc7cabe4d9 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 5 Jun 2010 23:32:36 +0100 Subject: Chatroom improvements. Merged chatroom stub into normal chatroom stuff, restored "chat add" behaviour a little bit better (don't clean up a channel when its room disappears, just disconnect it from the groupchat). --- irc_commands.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'irc_commands.c') diff --git a/irc_commands.c b/irc_commands.c index 24be35e3..ccfc2171 100644 --- a/irc_commands.c +++ b/irc_commands.c @@ -398,9 +398,7 @@ static void irc_cmd_invite( irc_t *irc, char **cmd ) return; } - if( ic->f->invite ) - ic->f->invite( ic, iu ); - else + if( !ic->f->invite || !ic->f->invite( ic, iu ) ) irc_send_num( irc, 482, "%s :Can't invite people here", cmd[2] ); } -- cgit v1.2.3