From 03e6c520fc1f9d1fc3f94ff54adc18f725843828 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 23 Oct 2010 00:46:44 +0100 Subject: Change 704 introduced one tiny bug where a Jabber resource doesn't get deleted properly when it logs out if it's the last one online for that user. Fixing that now. --- protocols/jabber/jabber_util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'protocols') diff --git a/protocols/jabber/jabber_util.c b/protocols/jabber/jabber_util.c index 504e0c28..e6b13659 100644 --- a/protocols/jabber/jabber_util.c +++ b/protocols/jabber/jabber_util.c @@ -579,8 +579,9 @@ int jabber_buddy_remove( struct im_connection *ic, char *full_jid_ ) ( ( s == NULL && bud->resource == NULL ) || ( bud->resource && s && strcmp( bud->resource, s + 1 ) == 0 ) ) ) { + int st = jabber_buddy_remove_bare( ic, full_jid ); g_free( full_jid ); - return jabber_buddy_remove_bare( ic, full_jid_ ); + return st; } else if( s == NULL || bud->resource == NULL ) { -- cgit v1.2.3