From 217bf4e0401435dce8dec87d2644fcadc986fa93 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Wed, 30 Jun 2010 20:30:42 +0100 Subject: Also, automatically set up per-protocol channels if the name's a protocol name. --- irc_channel.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'irc_channel.c') 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" ); -- cgit v1.2.3