changeset 10728:b5259f3dfc29

[gaim-migrate @ 12328] [15:55] <marv> grim: what does it do? [15:55] <grim> marv: corrects the logic in my patch that luke commited earlier [15:55] <grim> it's to make the groups hide when all accounts are offline committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Fri, 25 Mar 2005 21:56:29 +0000
parents d07ebadef09d
children 969f35b31a49
files src/blist.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/blist.c	Fri Mar 25 15:48:52 2005 +0000
+++ b/src/blist.c	Fri Mar 25 21:56:29 2005 +0000
@@ -2228,7 +2228,7 @@
 
 						presence = gaim_buddy_get_presence(buddy);
 
-						if(!gaim_presence_is_online(presence)) {
+						if(gaim_presence_is_online(presence)) {
 							contact->online--;
 							if (contact->online == 0)
 								group->online--;
@@ -2237,9 +2237,9 @@
 													"last_seen", time(NULL));
 						}
 
-						contact->online--;
-						if (contact->online == 0)
-							group->online--;
+						contact->currentsize--;
+						if (contact->currentsize == 0)
+							group->currentsize--;
 
 						gaim_presence_set_status_active(presence, "offline", TRUE);