# HG changeset patch # User Stu Tomlinson # Date 1131131919 0 # Node ID e33a9171aceb11541c114c1e3ff44dc4f701e2f2 # Parent aadf61b30056f9f883d96ba167943d281c3df29d [gaim-migrate @ 14269] When upgrading from Gaim < 2.x Do The Right Thing with auto-login/enabled accounts (make them sign in as available just like they used to) committer: Tailor Script diff -r aadf61b30056 -r e33a9171aceb src/account.c --- a/src/account.c Fri Nov 04 19:15:05 2005 +0000 +++ b/src/account.c Fri Nov 04 19:18:39 2005 +0000 @@ -678,6 +678,7 @@ char *protocol_id = NULL; char *name = NULL; char *data; + gboolean upgrade = FALSE; child = xmlnode_get_child(node, "protocol"); if (child != NULL) @@ -728,6 +729,8 @@ if (child != NULL) { parse_statuses(child, ret); + } else { + upgrade = TRUE; } /* Read the userinfo */ @@ -760,6 +763,10 @@ parse_proxy_info(child, ret); } + if (upgrade && gaim_account_get_enabled(ret, gaim_core_get_ui())) { + gaim_presence_set_status_active(ret->presence, "available", TRUE); + } + return ret; }