# HG changeset patch # User Mark Doliner # Date 1124341653 0 # Node ID e26b3f52b6f2f7648a2e7e864c64aa5bc4299cf6 # Parent 84d3f47e6258bb32e7a388209cc98025920f6d20 [gaim-migrate @ 13498] When starting Gaim, restore the previous account presence for all enabled accounts. PRPLs will likely need changes to take advantage of this, and the gtkstatusselector still intializes to the "online" state. committer: Tailor Script diff -r 84d3f47e6258 -r e26b3f52b6f2 src/account.c --- a/src/account.c Thu Aug 18 04:59:23 2005 +0000 +++ b/src/account.c Thu Aug 18 05:07:33 2005 +0000 @@ -781,6 +781,12 @@ GaimAccount *new_acct; new_acct = parse_account(child); gaim_accounts_add(new_acct); + + if (gaim_account_get_enabled(new_acct, gaim_core_get_ui()) && + (gaim_presence_is_online(new_acct->presence))) + { + gaim_account_connect(new_acct); + } } } @@ -1258,7 +1264,7 @@ g_return_if_fail(ui != NULL); gaim_account_set_ui_bool(account, ui, "auto-login", value); - if (gaim_presence_is_online(account->presence)) + if (value && gaim_presence_is_online(account->presence)) gaim_account_connect(account); }