Changeset 07874be for irc_im.c


Ignore:
Timestamp:
2010-08-14T13:44:35Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
e5854a8
Parents:
5848675 (diff), 136c2bb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_im.c

    r5848675 r07874be  
    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.