changeset 9021:3d30ed8dc7b0

[gaim-migrate @ 9797] This causes bad stuff to happen when an account is unable to connect. I'm reverting to what it was before my change 20 minutes ago. Hopefully I'll fix it later tonight (Basically I don't think connecting accounts should be classified as "online.") committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 22 May 2004 23:24:19 +0000
parents 8f281104c031
children 7f456c05b767
files src/account.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/account.c	Sat May 22 23:17:26 2004 +0000
+++ b/src/account.c	Sat May 22 23:24:19 2004 +0000
@@ -683,7 +683,9 @@
 
 	gc = gaim_account_get_connection(account);
 
-	return ((gc != NULL) && GAIM_CONNECTION_IS_CONNECTED(gc));
+	/* XXX - The first way is better... but it doesn't work quite right yet */
+	/* return ((gc != NULL) && GAIM_CONNECTION_IS_CONNECTED(gc)); */
+	return ((gc != NULL) && gaim_connection_get_state(gc) != GAIM_DISCONNECTED);
 }
 
 const char *