diff src/account.c @ 10400:6a043ae92db6

[gaim-migrate @ 11631] I'm about to go home for the holidays, so I figured I'd commit this before I left so someone else could pick up on it while I'm gone. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sun, 19 Dec 2004 20:32:32 +0000
parents aab0c9508318
children ce098e226486
line wrap: on
line diff
--- a/src/account.c	Sun Dec 19 17:35:59 2004 +0000
+++ b/src/account.c	Sun Dec 19 20:32:32 2004 +0000
@@ -227,7 +227,7 @@
 }
 
 GaimConnection *
-gaim_account_connect(GaimAccount *account)
+gaim_account_connect(GaimAccount *account, GaimStatus *status)
 {
 	GaimConnection *gc;
 
@@ -241,7 +241,7 @@
 	gaim_debug_info("account", "Connecting to account %p. gc = %p\n",
 					account, gc);
 
-	gaim_connection_connect(gc);
+	gaim_connection_connect(gc, status);
 
 	return gc;
 }
@@ -508,8 +508,8 @@
 }
 
 void
-gaim_account_set_auto_login(GaimAccount *account, const char *ui,
-							gboolean value)
+gaim_account_set_enabled(GaimAccount *account, const char *ui,
+			 gboolean value)
 {
 	g_return_if_fail(account != NULL);
 	g_return_if_fail(ui      != NULL);
@@ -829,7 +829,7 @@
 }
 
 gboolean
-gaim_account_get_auto_login(const GaimAccount *account, const char *ui)
+gaim_account_get_enabled(const GaimAccount *account, const char *ui)
 {
 	g_return_val_if_fail(account != NULL, FALSE);
 	g_return_val_if_fail(ui      != NULL, FALSE);
@@ -1631,8 +1631,8 @@
 	for (l = gaim_accounts_get_all(); l != NULL; l = l->next) {
 		account = l->data;
 
-		if (gaim_account_get_auto_login(account, ui))
-			gaim_account_connect(account);
+		if (gaim_account_get_enabled(account, ui))
+			gaim_account_connect(account, gaim_account_get_status(account, "online"));
 	}
 }