diff libpurple/protocols/jabber/presence.c @ 31682:58d9bcd75866

jabber: Compatibility with older servers Per xnyhps, the pidgin.im ejabberd needs this. Refs #7501.
author Paul Aurich <paul@darkrain42.org>
date Sun, 20 Feb 2011 18:21:47 +0000
parents ba6a4a0f8f50
children b2f6fec7b98e
line wrap: on
line diff
--- a/libpurple/protocols/jabber/presence.c	Sun Feb 20 03:03:54 2011 +0000
+++ b/libpurple/protocols/jabber/presence.c	Sun Feb 20 18:21:47 2011 +0000
@@ -588,7 +588,9 @@
 			role = xmlnode_get_attrib(presence->chat_info.item, "role");
 		}
 
-		if (g_slist_find(presence->chat_info.codes, GINT_TO_POINTER(110)))
+		if (g_slist_find(presence->chat_info.codes, GINT_TO_POINTER(110)) ||
+				g_str_equal(presence->jid_from->resource, chat->handle) ||
+				purple_strequal(presence->to, jid))
 			is_our_resource = TRUE;
 
 		if (g_slist_find(presence->chat_info.codes, GINT_TO_POINTER(201))) {