Changeset 231b08b


Ignore:
Timestamp:
2010-04-02T02:54:39Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
f012a9f
Parents:
fb117aee
Message:

Show buddy online/offline status in the first channel.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • irc_im.c

    rfb117aee r231b08b  
    7676static gboolean bee_irc_user_status( bee_t *bee, bee_user_t *bu, bee_user_t *old )
    7777{
     78        irc_t *irc = bee->ui_data;
     79        irc_channel_t *ic = irc->channels->data; /* For now, just pick the first channel. */
     80       
     81        if( ( bu->flags & BEE_USER_ONLINE ) != ( old->flags & BEE_USER_ONLINE ) )
     82        {
     83                if( bu->flags & BEE_USER_ONLINE )
     84                        irc_channel_add_user( ic, (irc_user_t*) bu->ui_data );
     85                else
     86                        irc_channel_del_user( ic, (irc_user_t*) bu->ui_data );
     87        }
     88       
    7889        return TRUE;
    7990}
  • protocols/bee_user.c

    rfb117aee r231b08b  
    7575                bee_user_t *bu = l->data;
    7676               
    77                 if( bu->ic == ic && ic->acc->prpl->handle_cmp( bu->handle, handle ) )
     77                if( bu->ic == ic && ic->acc->prpl->handle_cmp( bu->handle, handle ) == 0 )
    7878                        return bu;
    7979        }
Note: See TracChangeset for help on using the changeset viewer.