Ignore:
Timestamp:
2010-07-24T23:26:33Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
42acba1
Parents:
f1f7b5e
Message:

MSN supports having people in multiple groups and BitlBee does not. When
moving people between groups, make sure they *are* removed from their old
group.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn.c

    rf1f7b5e r8b01217  
    199199static void msn_add_buddy( struct im_connection *ic, char *who, char *group )
    200200{
     201        struct bee_user *bu = bee_user_by_handle( ic->bee, ic, who );
     202       
    201203        msn_buddy_list_add( ic, "FL", who, who, group );
     204        if( bu && bu->group )
     205                msn_buddy_list_remove( ic, "FL", who, bu->group->name );
    202206}
    203207
    204208static void msn_remove_buddy( struct im_connection *ic, char *who, char *group )
    205209{
    206         msn_buddy_list_remove( ic, "FL", who );
     210        msn_buddy_list_remove( ic, "FL", who, NULL );
    207211}
    208212
     
    274278static void msn_rem_permit( struct im_connection *ic, char *who )
    275279{
    276         msn_buddy_list_remove( ic, "AL", who );
     280        msn_buddy_list_remove( ic, "AL", who, NULL );
    277281}
    278282
     
    292296static void msn_rem_deny( struct im_connection *ic, char *who )
    293297{
    294         msn_buddy_list_remove( ic, "BL", who );
     298        msn_buddy_list_remove( ic, "BL", who, NULL );
    295299}
    296300
Note: See TracChangeset for help on using the changeset viewer.