src/blist.c

changeset 10557
7b2c41a3abea
parent 10548
990b3ec2758e
child 10567
87b02dd40349
--- 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; */
 

mercurial