diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-05-09 22:52:17 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-05-09 22:52:17 +0100 |
commit | 13c1a9f1bbf57bebbab621de609581c4fad54fb2 (patch) | |
tree | bdad5809b8804d57a4822aee0726936d4001fdee /irc_channel.c | |
parent | 3130e7074e567070fcc7be627a3836fa3f213142 (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.c | 5 |
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; } |