aboutsummaryrefslogtreecommitdiffstats
path: root/irc_im.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-06-30 00:44:17 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-06-30 00:44:17 +0100
commit7a6ba50d4824c4e33ebf1154e97038c9331f4f58 (patch)
tree93926be0405cd696661d23eef569b5ea0df4287e /irc_im.c
parent58646d9244557320ec811ee0b67519027170eede (diff)
Also allow selecting contacts for a channel by protocol instead of account.
If someone has two MSN accts and wants contacts from both in one channel, this is now possible.
Diffstat (limited to 'irc_im.c')
-rw-r--r--irc_im.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/irc_im.c b/irc_im.c
index 6572be44..268fb176 100644
--- a/irc_im.c
+++ b/irc_im.c
@@ -156,6 +156,8 @@ void bee_irc_channel_update( irc_t *irc, irc_channel_t *ic, irc_user_t *iu )
show = iu->bu->group == icc->group;
else if( icc->type == IRC_CC_TYPE_ACCOUNT )
show = iu->bu->ic->acc == icc->account;
+ else if( icc->type == IRC_CC_TYPE_PROTOCOL )
+ show = iu->bu->ic->acc->prpl == icc->protocol;
if( !show )
{