aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-06-30 20:30:42 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-06-30 20:30:42 +0100
commit217bf4e0401435dce8dec87d2644fcadc986fa93 (patch)
tree5bc6324db9697455756e0ab729b6a29728f5491a
parent7a6ba50d4824c4e33ebf1154e97038c9331f4f58 (diff)
Also, automatically set up per-protocol channels if the name's a protocol
name.
-rw-r--r--irc_channel.c4
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" );