aboutsummaryrefslogtreecommitdiffstats
path: root/irc_channel.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-05-09 22:52:17 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-05-09 22:52:17 +0100
commit13c1a9f1bbf57bebbab621de609581c4fad54fb2 (patch)
treebdad5809b8804d57a4822aee0726936d4001fdee /irc_channel.c
parent3130e7074e567070fcc7be627a3836fa3f213142 (diff)
/join &groupname and all people in that group will be in that channel.
Diffstat (limited to 'irc_channel.c')
-rw-r--r--irc_channel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/irc_channel.c b/irc_channel.c
index e6570f4c..159c16dc 100644
--- a/irc_channel.c
+++ b/irc_channel.c
@@ -262,6 +262,11 @@ static gboolean control_channel_init( irc_channel_t *ic )
ic->data = icc = g_new0( struct irc_control_channel, 1 );
icc->type = IRC_CC_TYPE_DEFAULT;
+ if( ( icc->group = bee_group_by_name( ic->irc->b, ic->name + 1, FALSE ) ) )
+ icc->type = IRC_CC_TYPE_GROUP;
+
+ bee_irc_channel_update( ic->irc, ic, NULL );
+
return TRUE;
}