changeset 28651:31497213393c

jabber: This is more clear.
author Paul Aurich <paul@darkrain42.org>
date Fri, 27 Nov 2009 20:52:01 +0000
parents 9ae3e70a327b
children 61cd675b73df
files libpurple/protocols/jabber/presence.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/presence.c	Fri Nov 27 17:07:19 2009 +0000
+++ b/libpurple/protocols/jabber/presence.c	Fri Nov 27 20:52:01 2009 +0000
@@ -957,7 +957,7 @@
 		buddy_name = g_strdup_printf("%s%s%s", jid->node ? jid->node : "",
 									 jid->node ? "@" : "", jid->domain);
 		if((b = purple_find_buddy(js->gc->account, buddy_name)) == NULL) {
-			if(!jid->node || strcmp(jid->node,js->user->node) || strcmp(jid->domain,js->user->domain)) {
+			if (jb != js->user_jb) {
 				purple_debug_warning("jabber", "Got presence for unknown buddy %s on account %s (%p)\n",
 									 buddy_name, purple_account_get_username(js->gc->account), js->gc->account);
 				jabber_id_free(jid);