diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2008-08-31 10:13:56 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2008-08-31 10:13:56 +0100 |
commit | 0e639f5e5245aa807764162b7f1928b641947658 (patch) | |
tree | 55e1ea9709530249f8a0745079fc5cbbad7c5dcf /chat.c | |
parent | e7bc722f096562914f54da2e1f8a0f3614763c1d (diff) |
Added one TODO, and also dupe-check channel names against the control
channel.
Diffstat (limited to 'chat.c')
-rw-r--r-- | chat.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 ) |