Changeset 4e608d6 for protocols


Ignore:
Timestamp:
2010-05-09T21:56:39Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
a067771
Parents:
13c1a9f
Message:

Pick up group changes coming in during a session. Reflecting them in the
session will be a bit more complicated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    r13c1a9f r4e608d6  
    375375        bee_t *bee = ic->bee;
    376376       
    377         if( bee_user_by_handle( bee, ic, handle ) )
    378         {
    379                 if( set_getbool( &bee->set, "debug" ) )
    380                         imcb_log( ic, "User already exists, ignoring add request: %s", handle );
    381                
    382                 return;
    383                
    384                 /* Buddy seems to exist already. Let's ignore this request then...
    385                    Eventually subsequent calls to this function *should* be possible
    386                    when a buddy is in multiple groups. But for now BitlBee doesn't
    387                    even support groups so let's silently ignore this for now. */
    388         }
    389        
    390         bu = bee_user_new( bee, ic, handle );
     377        if( !( bu = bee_user_by_handle( bee, ic, handle ) ) )
     378                bu = bee_user_new( bee, ic, handle );
     379       
    391380        bu->group = bee_group_by_name( bee, group, TRUE );
    392381}
Note: See TracChangeset for help on using the changeset viewer.