Mercurial > pidgin
changeset 6860:82607477da69
[gaim-migrate @ 7405]
give the last buddy in the group the chance to go quietly into the night
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 16 Sep 2003 04:49:51 +0000 |
parents | 17514a2f976a |
children | 4ae5d9c3d9ec |
files | src/blist.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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) {