# HG changeset patch # User Tim Ringenbach # Date 1111787789 0 # Node ID b5259f3dfc2968c3fcdf8b28f8df526de498a874 # Parent d07ebadef09dc16c549237ae41643baf20ba01c7 [gaim-migrate @ 12328] [15:55] grim: what does it do? [15:55] marv: corrects the logic in my patch that luke commited earlier [15:55] it's to make the groups hide when all accounts are offline committer: Tailor Script diff -r d07ebadef09d -r b5259f3dfc29 src/blist.c --- 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);