changeset 19531:ecc6019f0a82

Deactivate only an active status. This fixes the online-counting, which was causing groups and contacts to disappear from the buddylist. This probably also fixes #2853.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 29 Aug 2007 20:20:45 +0000
parents b7fa8fa4de5b
children 7d9887c3ac81
files libpurple/prpl.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/prpl.c	Wed Aug 29 06:18:49 2007 +0000
+++ b/libpurple/prpl.c	Wed Aug 29 20:20:45 2007 +0000
@@ -199,8 +199,10 @@
 		if(NULL == status)
 			continue;
 
-		purple_status_set_active(status, FALSE);
-		purple_blist_update_buddy_status(buddy, status);
+		if (purple_status_is_active(status)) {
+			purple_status_set_active(status, FALSE);
+			purple_blist_update_buddy_status(buddy, status);
+		}
 	}
 
 	g_slist_free(list);