aboutsummaryrefslogtreecommitdiffstats
path: root/protocols
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-05-09 22:56:39 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-05-09 22:56:39 +0100
commit4e608d6fee8ee39b871338524b6da00aa5a6e86b (patch)
tree86556583dd05caa0b7e9b5e0cfa5c9a0132536b2 /protocols
parent13c1a9f1bbf57bebbab621de609581c4fad54fb2 (diff)
Pick up group changes coming in during a session. Reflecting them in the
session will be a bit more complicated.
Diffstat (limited to 'protocols')
-rw-r--r--protocols/nogaim.c15
1 files changed, 2 insertions, 13 deletions
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 );
}