From 4e608d6fee8ee39b871338524b6da00aa5a6e86b Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sun, 9 May 2010 22:56:39 +0100 Subject: Pick up group changes coming in during a session. Reflecting them in the session will be a bit more complicated. --- protocols/nogaim.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'protocols/nogaim.c') diff --git a/protocols/nogaim.c b/protocols/nogaim.c index 5696a01e..51679f88 100644 --- a/protocols/nogaim.c +++ b/protocols/nogaim.c @@ -374,20 +374,9 @@ void imcb_add_buddy( struct im_connection *ic, const char *handle, const char *g bee_user_t *bu; bee_t *bee = ic->bee; - if( bee_user_by_handle( bee, ic, handle ) ) - { - if( set_getbool( &bee->set, "debug" ) ) - imcb_log( ic, "User already exists, ignoring add request: %s", handle ); - - return; - - /* Buddy seems to exist already. Let's ignore this request then... - Eventually subsequent calls to this function *should* be possible - when a buddy is in multiple groups. But for now BitlBee doesn't - even support groups so let's silently ignore this for now. */ - } + if( !( bu = bee_user_by_handle( bee, ic, handle ) ) ) + bu = bee_user_new( bee, ic, handle ); - bu = bee_user_new( bee, ic, handle ); bu->group = bee_group_by_name( bee, group, TRUE ); } -- cgit v1.2.3