From ff978db3ec26fbebe32465f4d1d30cf6aa066768 Mon Sep 17 00:00:00 2001 From: sje Date: Thu, 19 Jul 2007 00:33:12 +0000 Subject: treat invisible status equal to online git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@288 4f64403b-2f21-0410-a795-97e2b3489a10 --- metacontacts/meta_utils.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'metacontacts/meta_utils.c') diff --git a/metacontacts/meta_utils.c b/metacontacts/meta_utils.c index 79cba6f..c368ebb 100644 --- a/metacontacts/meta_utils.c +++ b/metacontacts/meta_utils.c @@ -430,14 +430,14 @@ BOOL Meta_Assign(HANDLE src, HANDLE dest, BOOL set_as_default) } /* -#define ID_STATUS_OFFLINE 40071 ->9 +#define ID_STATUS_OFFLINE 40071 ->8 #define ID_STATUS_ONLINE 40072 ->0 #define ID_STATUS_AWAY 40073 ->4 #define ID_STATUS_DND 40074 ->7 #define ID_STATUS_NA 40075 ->6 #define ID_STATUS_OCCUPIED 40076 ->5 #define ID_STATUS_FREECHAT 40077 ->1 -#define ID_STATUS_INVISIBLE 40078 ->8 +#define ID_STATUS_INVISIBLE 40078 ->0 #define ID_STATUS_ONTHEPHONE 40079 ->2 #define ID_STATUS_OUTTOLUNCH 40080 ->3 @@ -445,7 +445,7 @@ BOOL Meta_Assign(HANDLE src, HANDLE dest, BOOL set_as_default) */ -int status_order[10] = {9, 0, 4, 7, 6, 5, 1, 8, 2, 3}; +int status_order[10] = {8, 0, 4, 7, 6, 5, 1, 0, 2, 3}; /** * Convenience method - get most online contact supporting messaging @@ -535,7 +535,8 @@ HANDLE Meta_GetMostOnlineSupporting(HANDLE hMeta, int pflagnum, unsigned long ca // see comment above function - AIM is disproportionatly the most online due to limited status modes if((strcmp(proto, "AIM") == 0 - || strcmp(proto, "SAMETIME") == 0) + || strcmp(proto, "SAMETIME") == 0 + || strcmp(proto, "MYSPACE")) && status == ID_STATUS_AWAY) { status = ID_STATUS_NA; -- cgit v1.2.3