diff src/account.c @ 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 db1dc2d02020
children 7a8aa87164ae
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 *