changeset 10557:a511fb614157

[gaim-migrate @ 11934] make buddies go offline when the account goes offline at some point we need to remove GaimBuddy->present and update anything using it to the new status stuff committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sat, 29 Jan 2005 23:08:56 +0000
parents 3eff59ad7acb
children 8bcf7909bec8
files src/blist.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/blist.c	Sat Jan 29 22:31:02 2005 +0000
+++ b/src/blist.c	Sat Jan 29 23:08:56 2005 +0000
@@ -2227,6 +2227,7 @@
 					if (!GAIM_BLIST_NODE_IS_BUDDY(bnode))
 						continue;
 					if (account == ((GaimBuddy *)bnode)->account) {
+						GaimPresence *presence;
 						recompute = TRUE;
 						if (((GaimBuddy*)bnode)->present == GAIM_BUDDY_ONLINE ||
 								((GaimBuddy*)bnode)->present == GAIM_BUDDY_SIGNING_ON) {
@@ -2242,6 +2243,9 @@
 
 						((GaimBuddy*)bnode)->present = GAIM_BUDDY_OFFLINE;
 
+						presence = gaim_buddy_get_presence((GaimBuddy*)bnode);
+						gaim_presence_set_status_active(presence, "offline", TRUE);
+
 						((GaimBuddy*)bnode)->uc = 0;
 						/* TODO: ((GaimBuddy*)bnode)->idle = 0; */