comparison src/account.c @ 11722:01647b11ecd3

[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 <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 22 Oct 2005 21:20:22 +0000
parents eb14bbcf7249
children a14d72b6ca41
comparison
equal deleted inserted replaced
11721:2d98b2759fa1 11722:01647b11ecd3
973 g_return_if_fail(account != NULL); 973 g_return_if_fail(account != NULL);
974 974
975 gaim_debug_info("account", "Connecting to account %s\n", 975 gaim_debug_info("account", "Connecting to account %s\n",
976 gaim_account_get_username(account)); 976 gaim_account_get_username(account));
977 977
978 if (!gaim_account_get_enabled(account, gaim_core_get_ui()))
979 return;
980
978 prpl = gaim_find_prpl(gaim_account_get_protocol_id(account)); 981 prpl = gaim_find_prpl(gaim_account_get_protocol_id(account));
979 if (prpl == NULL) 982 if (prpl == NULL)
980 { 983 {
981 gchar *message; 984 gchar *message;
982 985