aboutsummaryrefslogtreecommitdiffstats
path: root/chat.c
diff options
context:
space:
mode:
Diffstat (limited to 'chat.c')
-rw-r--r--chat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/chat.c b/chat.c
index 41de1401..a786794e 100644
--- a/chat.c
+++ b/chat.c
@@ -33,6 +33,9 @@ struct chat *chat_add( irc_t *irc, account_t *acc, char *handle, char *channel )
if( !chat_chanok( channel ) )
return NULL;
+ if( chat_chancmp( channel, irc->channel ) == 0 )
+ return NULL;
+
for( c = irc->chatrooms; c; c = c->next )
{
if( chat_chancmp( channel, c->channel ) == 0 )