aboutsummaryrefslogtreecommitdiffstats
path: root/irc_channel.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-05-09 23:08:30 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-05-09 23:08:30 +0100
commita067771fa1799e689653931f6743b3502182b850 (patch)
treeafe0a0d236deb045a8000405a83609c85a691ef7 /irc_channel.c
parent4e608d6fee8ee39b871338524b6da00aa5a6e86b (diff)
Per-account channels also exist now.
Diffstat (limited to 'irc_channel.c')
-rw-r--r--irc_channel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/irc_channel.c b/irc_channel.c
index 159c16dc..f000a997 100644
--- a/irc_channel.c
+++ b/irc_channel.c
@@ -264,6 +264,8 @@ static gboolean control_channel_init( irc_channel_t *ic )
if( ( icc->group = bee_group_by_name( ic->irc->b, ic->name + 1, FALSE ) ) )
icc->type = IRC_CC_TYPE_GROUP;
+ else if( ( icc->account = account_get( ic->irc->b, ic->name + 1 ) ) )
+ icc->type = IRC_CC_TYPE_ACCOUNT;
bee_irc_channel_update( ic->irc, ic, NULL );