# HG changeset patch # User Paul Aurich # Date 1298226107 0 # Node ID 58d9bcd75866effaf964b8b843b03e56baad8cff # Parent e67cd3f2ebb60a8ce04c497c36f8d222133d3b4f jabber: Compatibility with older servers Per xnyhps, the pidgin.im ejabberd needs this. Refs #7501. diff -r e67cd3f2ebb6 -r 58d9bcd75866 libpurple/protocols/jabber/presence.c --- 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))) {