# HG changeset patch # User Will Thompson # Date 1208022944 0 # Node ID 21f1acb9090fa21dbf3ff6de82492fa5e79d9400 # Parent 0c59913dc8a0738e148affaa7c896ffe31413c19 Patch from Maiku: "When the buddy list is set to sort contacts by status, contacts who have a tune set are scored lower than contacts who aren't, even though their status apart from that is the same." Also added more detail to the comment that was intended to prevent this ever happening. Fixes #5493 -- thanks! diff -r 0c59913dc8a0 -r 21f1acb9090f libpurple/status.c --- a/libpurple/status.c Sat Apr 12 17:48:16 2008 +0000 +++ b/libpurple/status.c Sat Apr 12 17:55:44 2008 +0000 @@ -130,14 +130,15 @@ -100, /* away */ -200, /* extended away */ -400, /* mobile */ + 0, /* tune */ -10, /* idle, special case. */ -5, /* idle time, special case. */ 10 /* Offline messageable */ }; -#define SCORE_IDLE 8 -#define SCORE_IDLE_TIME 9 -#define SCORE_OFFLINE_MESSAGE 10 +#define SCORE_IDLE 9 +#define SCORE_IDLE_TIME 10 +#define SCORE_OFFLINE_MESSAGE 11 /************************************************************************** * PurpleStatusPrimitive API diff -r 0c59913dc8a0 -r 21f1acb9090f libpurple/status.h --- a/libpurple/status.h Sat Apr 12 17:48:16 2008 +0000 +++ b/libpurple/status.h Sat Apr 12 17:55:44 2008 +0000 @@ -96,7 +96,8 @@ */ /* * If you add a value to this enum, make sure you update - * the status_primitive_map array in status.c. + * the status_primitive_map array in status.c and the special-cases for idle + * and offline-messagable just below it. */ typedef enum { @@ -110,7 +111,6 @@ PURPLE_STATUS_MOBILE, PURPLE_STATUS_TUNE, PURPLE_STATUS_NUM_PRIMITIVES - } PurpleStatusPrimitive; #include "account.h"