diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-06-30 20:30:42 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-06-30 20:30:42 +0100 |
commit | 217bf4e0401435dce8dec87d2644fcadc986fa93 (patch) | |
tree | 5bc6324db9697455756e0ab729b6a29728f5491a /irc_channel.c | |
parent | 7a6ba50d4824c4e33ebf1154e97038c9331f4f58 (diff) |
Also, automatically set up per-protocol channels if the name's a protocol
name.
Diffstat (limited to 'irc_channel.c')
-rw-r--r-- | irc_channel.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/irc_channel.c b/irc_channel.c index f5e140e0..a0aaaccf 100644 --- a/irc_channel.c +++ b/irc_channel.c @@ -492,6 +492,10 @@ static gboolean control_channel_init( irc_channel_t *ic ) set_setstr( &ic->set, "group", ic->name + 1 ); set_setstr( &ic->set, "fill_by", "group" ); } + else if( set_setstr( &ic->set, "protocol", ic->name + 1 ) ) + { + set_setstr( &ic->set, "fill_by", "protocol" ); + } else if( set_setstr( &ic->set, "account", ic->name + 1 ) ) { set_setstr( &ic->set, "fill_by", "account" ); |