Changeset ac2717b for root_commands.c


Ignore:
Timestamp:
2010-08-14T10:55:20Z (14 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
  • root_commands.c

    r4ffd757 rac2717b  
    10081008        irc_usermsg( irc, format, "Nick", "Handle/Account", "Status" );
    10091009       
     1010        if( strcmp( set_getstr( &irc->root->last_channel->set, "type" ), "control" ) != 0 )
     1011                irc->root->last_channel = NULL;
     1012       
    10101013        for( l = irc->users; l; l = l->next )
    10111014        {
     
    10131016                bee_user_t *bu = iu->bu;
    10141017               
    1015                 if( !bu || ( bu->flags & ( BEE_USER_ONLINE | BEE_USER_AWAY ) ) != BEE_USER_ONLINE )
     1018                if( !bu || ( irc->root->last_channel && !irc_channel_wants_user( irc->root->last_channel, iu ) ) ||
     1019                    ( bu->flags & ( BEE_USER_ONLINE | BEE_USER_AWAY ) ) != BEE_USER_ONLINE )
    10161020                        continue;
    10171021               
     
    10351039                bee_user_t *bu = iu->bu;
    10361040               
    1037                 if( !bu || !( bu->flags & BEE_USER_ONLINE ) || !( bu->flags & BEE_USER_AWAY ) )
     1041                if( !bu || ( irc->root->last_channel && !irc_channel_wants_user( irc->root->last_channel, iu ) ) ||
     1042                    !( bu->flags & BEE_USER_ONLINE ) || !( bu->flags & BEE_USER_AWAY ) )
    10381043                        continue;
    10391044               
     
    10511056                bee_user_t *bu = iu->bu;
    10521057               
    1053                 if( !bu || bu->flags & BEE_USER_ONLINE )
     1058                if( !bu || ( irc->root->last_channel && !irc_channel_wants_user( irc->root->last_channel, iu ) ) ||
     1059                    bu->flags & BEE_USER_ONLINE )
    10541060                        continue;
    10551061               
Note: See TracChangeset for help on using the changeset viewer.