Changeset 7e83e8e4


Ignore:
Timestamp:
2010-06-05T00:35:17Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
c133d4b8
Parents:
2b8473c
Message:

Inform the UI about group changes. This is important if the user has
group channels.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • irc_im.c

    r2b8473c r7e83e8e4  
    259259}
    260260
     261static gboolean bee_irc_user_group( bee_t *bee, bee_user_t *bu )
     262{
     263        irc_user_t *iu = (irc_user_t *) bu->ui_data;
     264        irc_t *irc = (irc_t *) bee->ui_data;
     265       
     266        bee_irc_channel_update( irc, NULL, iu );
     267       
     268        return TRUE;
     269}
     270
    261271/* IRC->IM calls */
    262272
     
    544554        bee_irc_user_free,
    545555        bee_irc_user_fullname,
     556        bee_irc_user_group,
    546557        bee_irc_user_status,
    547558        bee_irc_user_msg,
  • protocols/bee.h

    r2b8473c r7e83e8e4  
    8383        gboolean (*user_free)( bee_t *bee, struct bee_user *bu );
    8484        gboolean (*user_fullname)( bee_t *bee, bee_user_t *bu );
     85        gboolean (*user_group)( bee_t *bee, bee_user_t *bu );
    8586        gboolean (*user_status)( bee_t *bee, struct bee_user *bu, struct bee_user *old );
    8687        gboolean (*user_msg)( bee_t *bee, bee_user_t *bu, const char *msg, time_t sent_at );
  • protocols/nogaim.c

    r2b8473c r7e83e8e4  
    379379       
    380380        bu->group = bee_group_by_name( bee, group, TRUE );
     381       
     382        if( bee->ui->user_group )
     383                bee->ui->user_group( bee, bu );
    381384}
    382385
Note: See TracChangeset for help on using the changeset viewer.