Sun, 20 Feb 2011 18:21:47 +0000
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))) {