Mercurial > pidgin
changeset 22180:2579d93849bb
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.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 23 Jan 2008 01:31:36 +0000 |
parents | e476e964650c |
children | 8509419a666c |
files | libpurple/blist.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/blist.c Wed Jan 23 00:54:25 2008 +0000 +++ b/libpurple/blist.c Wed Jan 23 01:31:36 2008 +0000 @@ -640,10 +640,10 @@ if (purple_account_is_connected(buddy->account)) { - int cmp; - - cmp = purple_presence_compare(purple_buddy_get_presence(new_priority), - purple_buddy_get_presence(buddy)); + 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)); if (cmp > 0 || (cmp == 0 && purple_prefs_get_bool("/purple/contact/last_match")))