# HG changeset patch # User Nathan Walp # Date 1107040136 0 # Node ID a511fb6141576efc90442be3283b3be090a1ac1d # Parent 3eff59ad7acbcff414e8f57aa3cf762404b0dc5d [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 diff -r 3eff59ad7acb -r a511fb614157 src/blist.c --- 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; */