# HG changeset patch # User Mark Doliner # Date 1130016022 0 # Node ID 01647b11ecd36bd3634c6f36a1dc6ec2e8745e55 # Parent 2d98b2759fa177103f25c993ff28887059a41d1a [gaim-migrate @ 14013] Don't EVER allow an account to connect if it is disabled. This fixes the bug where you'd get disconnected, then the user disables the account, then the autoreconnect plugin would still try to reconnect. committer: Tailor Script diff -r 2d98b2759fa1 -r 01647b11ecd3 src/account.c --- a/src/account.c Sat Oct 22 21:06:28 2005 +0000 +++ b/src/account.c Sat Oct 22 21:20:22 2005 +0000 @@ -975,6 +975,9 @@ gaim_debug_info("account", "Connecting to account %s\n", gaim_account_get_username(account)); + if (!gaim_account_get_enabled(account, gaim_core_get_ui())) + return; + prpl = gaim_find_prpl(gaim_account_get_protocol_id(account)); if (prpl == NULL) {