# HG changeset patch # User Nathan Walp # Date 1063687791 0 # Node ID 82607477da69070d93a76ddba1d6b7cf95af6090 # Parent 17514a2f976a97d38f9d9fcf536ed6dbc98e2a24 [gaim-migrate @ 7405] give the last buddy in the group the chance to go quietly into the night committer: Tailor Script diff -r 17514a2f976a -r 82607477da69 src/blist.c --- a/src/blist.c Tue Sep 16 04:13:59 2003 +0000 +++ b/src/blist.c Tue Sep 16 04:49:51 2003 +0000 @@ -231,6 +231,9 @@ buddy->present = GAIM_BUDDY_ONLINE; } else if(buddy->present == GAIM_BUDDY_SIGNING_OFF) { buddy->present = GAIM_BUDDY_OFFLINE; + ((GaimContact*)((GaimBlistNode*)buddy)->parent)->online--; + if(((GaimContact*)((GaimBlistNode*)buddy)->parent)->online == 0) + ((GaimGroup *)((GaimBlistNode *)buddy)->parent->parent)->online--; } buddy->timer = 0; @@ -264,9 +267,6 @@ buddy->present = GAIM_BUDDY_SIGNING_OFF; gaim_signal_emit(gaim_blist_get_handle(), "buddy-signed-off", buddy); do_timer = TRUE; - ((GaimContact*)((GaimBlistNode*)buddy)->parent)->online--; - if(((GaimContact*)((GaimBlistNode*)buddy)->parent)->online == 0) - ((GaimGroup *)((GaimBlistNode *)buddy)->parent->parent)->online--; } if(do_timer) {