im.pidgin.pidgin: 6c13c5d9b0c442be6bd02292ddfe0ffb33e7b185

sadrul at pidgin.im sadrul at pidgin.im
Tue Jan 22 20:35:42 EST 2008


-----------------------------------------------------------------
Revision: 6c13c5d9b0c442be6bd02292ddfe0ffb33e7b185
Ancestor: bb8516123d8be7fa56a529682b80c7462e0f1758
Author: sadrul at pidgin.im
Date: 2008-01-23T01:31:36
Branch: im.pidgin.pidgin

Modified files:
        libpurple/blist.c

ChangeLog: 

When computing priority buddies for a contact, a buddy on an online account will always have a higher priority over a buddy on an offline account.

-------------- next part --------------
============================================================
--- libpurple/blist.c	95393603cf4b1d4962e5def8255b609bf173a6f7
+++ libpurple/blist.c	ac450236ede90d2c33c36142013dbc069e6ac8e6
@@ -640,11 +640,11 @@ purple_contact_compute_priority_buddy(Pu
 
 		if (purple_account_is_connected(buddy->account))
 		{
-			int cmp;
+			int cmp = 1;
+			if (purple_account_is_connected(new_priority->account))
+				cmp = purple_presence_compare(purple_buddy_get_presence(new_priority),
+						purple_buddy_get_presence(buddy));
 
-			cmp = purple_presence_compare(purple_buddy_get_presence(new_priority),
-			                            purple_buddy_get_presence(buddy));
-
 			if (cmp > 0 || (cmp == 0 &&
 			                purple_prefs_get_bool("/purple/contact/last_match")))
 			{


More information about the Commits mailing list