jabber: Compatibility with older servers

Sun, 20 Feb 2011 18:21:47 +0000

author
Paul Aurich <darkrain42@pidgin.im>
date
Sun, 20 Feb 2011 18:21:47 +0000
changeset 31445
a574e4e63b36
parent 31444
e39abb0b126b
child 31446
33da3b2f1252

jabber: Compatibility with older servers

Per xnyhps, the pidgin.im ejabberd needs this. Refs #7501.

libpurple/protocols/jabber/presence.c file | annotate | diff | comparison | revisions
--- 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))) {

mercurial