From 0e639f5e5245aa807764162b7f1928b641947658 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sun, 31 Aug 2008 10:13:56 +0100 Subject: Added one TODO, and also dupe-check channel names against the control channel. --- chat.c | 3 +++ root_commands.c | 2 ++ 2 files changed, 5 insertions(+) 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 ) diff --git a/root_commands.c b/root_commands.c index 89fc4776..83620173 100644 --- a/root_commands.c +++ b/root_commands.c @@ -301,6 +301,8 @@ static int cmd_set_real( irc_t *irc, char **cmd, cmd_set_findhead findhead ) int st; /* + FIXME: Make these work again. Probably a gross hack. + if( a->ic && s && s->flags & ACC_SET_OFFLINE_ONLY ) { irc_usermsg( irc, "This setting can only be changed when the account is %s-line", "off" ); -- cgit v1.2.3