diff 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
line wrap: on
line diff
--- 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)
 	{