# HG changeset patch # User Mark Doliner # Date 1114375116 0 # Node ID 885377f484b7db0aa469f5753abb78b72916a73b # Parent 42c16b293867b5cad1ae70cb6f2f561428a67a01 [gaim-migrate @ 12545] Checking the "enabled" box in the accounts window will sign on the account, now. committer: Tailor Script diff -r 42c16b293867 -r 885377f484b7 src/account.c --- a/src/account.c Sun Apr 24 19:52:29 2005 +0000 +++ b/src/account.c Sun Apr 24 20:38:36 2005 +0000 @@ -1086,6 +1086,8 @@ g_return_if_fail(ui != NULL); gaim_account_set_ui_bool(account, ui, "auto-login", value); + if (gaim_presence_is_online(account->presence)) + gaim_account_connect(account); } void @@ -1154,11 +1156,14 @@ return; } - /* Our current statuses are saved to accounts.xml */ - schedule_accounts_save(); - if (active || gaim_status_is_independent(status)) gaim_status_set_active_with_attrs(status, active, args); + + /* + * Our current statuses are saved to accounts.xml (so that when we + * reconnect, we go back to the previous status). + */ + schedule_accounts_save(); } void