# HG changeset patch # User Nathan Walp # Date 1182740192 0 # Node ID 54ad47857b7b818251c63cdca2b8012e1a0040d9 # Parent 589c9ebf84db64c8e73e19279565da55b1f4fb49 this fixes a bug where: Resource A comes online, as available Resource B comes online, as available Resource A goes away Resource B goes away, with a lower priority than A Buddy is still shown as available diff -r 589c9ebf84db -r 54ad47857b7b libpurple/protocols/jabber/presence.c --- a/libpurple/protocols/jabber/presence.c Sun Jun 24 17:52:52 2007 +0000 +++ b/libpurple/protocols/jabber/presence.c Mon Jun 25 02:56:32 2007 +0000 @@ -565,9 +565,7 @@ } if((found_jbr = jabber_buddy_find_resource(jb, NULL))) { - if(!jbr || jbr == found_jbr) { - purple_prpl_got_user_status(js->gc->account, buddy_name, jabber_buddy_state_get_status_id(state), "priority", found_jbr->priority, found_jbr->status ? "message" : NULL, found_jbr->status, NULL); - } + purple_prpl_got_user_status(js->gc->account, buddy_name, jabber_buddy_state_get_status_id(state), "priority", found_jbr->priority, found_jbr->status ? "message" : NULL, found_jbr->status, NULL); } else { purple_prpl_got_user_status(js->gc->account, buddy_name, "offline", status ? "message" : NULL, status, NULL); }