changeset 22873:e8a66e79c49c

Show yourself as invisible in the buddylist when you're invisible
author Mark Doliner <mark@kingant.net>
date Fri, 09 May 2008 05:58:54 +0000
parents 713cd3a2d1cd
children 790c606ff8a9 395ced2d98cc
files libpurple/protocols/oscar/oscar.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c	Thu May 08 18:24:01 2008 +0000
+++ b/libpurple/protocols/oscar/oscar.c	Fri May 09 05:58:54 2008 +0000
@@ -1822,7 +1822,9 @@
 		else
 			status_id = OSCAR_STATUS_ID_AVAILABLE;
 	} else {
-		if (buddy_is_away)
+		if (type & AIM_ICQ_STATE_INVISIBLE)
+			status_id = OSCAR_STATUS_ID_INVISIBLE;
+		else if (buddy_is_away)
 			status_id = OSCAR_STATUS_ID_AWAY;
 		else
 			status_id = OSCAR_STATUS_ID_AVAILABLE;