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 | |
parent | e7bc722f096562914f54da2e1f8a0f3614763c1d (diff) |
Added one TODO, and also dupe-check channel names against the control
channel.
-rw-r--r-- | chat.c | 3 | ||||
-rw-r--r-- | root_commands.c | 2 |
2 files changed, 5 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 ) 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" ); |