pidgin: 907ec8e4: jabber: Compatibility with older servers

darkrain42 at pidgin.im darkrain42 at pidgin.im
Sun Feb 20 13:25:51 EST 2011


----------------------------------------------------------------------
Revision: 907ec8e47d3024d0ae697d1142192dfa7d9d9cf4
Parent:   1a8788675b99cc6d99185050a277dd59dd6fabd0
Author:   darkrain42 at pidgin.im
Date:     02/20/11 13:21:47
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/907ec8e47d3024d0ae697d1142192dfa7d9d9cf4

Changelog: 

jabber: Compatibility with older servers

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

Changes against parent 1a8788675b99cc6d99185050a277dd59dd6fabd0

  patched  libpurple/protocols/jabber/presence.c

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/presence.c	61809afddc76a990afa3967a167a516997fe1cb3
+++ libpurple/protocols/jabber/presence.c	9e9a6b1ef69731d0e6bcbaee086d6b0551a0764f
@@ -588,7 +588,9 @@ handle_presence_chat(JabberStream *js, J
 			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))) {


More information about the Commits mailing list