changeset 31233: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 e67cd3f2ebb6
children b678afdc2b8f
files libpurple/protocols/jabber/presence.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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))) {