Changeset ac2717b for irc_im.c


Ignore:
Timestamp:
2010-08-14T10:55:20Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
136c2bb
Parents:
4ffd757
Message:

blist should only show contacts that are (or would be if they were online)
in the current channel.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_im.c

    r4ffd757 rac2717b  
    141141void bee_irc_channel_update( irc_t *irc, irc_channel_t *ic, irc_user_t *iu )
    142142{
    143         struct irc_control_channel *icc;
    144143        GSList *l;
    145         gboolean match = FALSE;
    146144       
    147145        if( ic == NULL )
     
    168166        }
    169167       
    170         icc = ic->data;
    171        
    172         if( icc->type == IRC_CC_TYPE_DEFAULT )
    173                 match = TRUE;
    174         else if( icc->type == IRC_CC_TYPE_GROUP )
    175                 match = iu->bu->group == icc->group;
    176         else if( icc->type == IRC_CC_TYPE_ACCOUNT )
    177                 match = iu->bu->ic->acc == icc->account;
    178         else if( icc->type == IRC_CC_TYPE_PROTOCOL )
    179                 match = iu->bu->ic->acc->prpl == icc->protocol;
    180        
    181         if( !match )
     168        if( !irc_channel_wants_user( ic, iu ) )
    182169        {
    183170                irc_channel_del_user( ic, iu, IRC_CDU_PART, NULL );
     
    185172        else
    186173        {
     174                struct irc_control_channel *icc = ic->data;
    187175                int mode = 0;
    188176               
Note: See TracChangeset for help on using the changeset viewer.