changeset 18272:54ad47857b7b

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
author Nathan Walp <nwalp@pidgin.im>
date Mon, 25 Jun 2007 02:56:32 +0000
parents 589c9ebf84db
children ad450d54e72d
files libpurple/protocols/jabber/presence.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);
 		}