diff src/account.c @ 11562:9f521a61ef58

[gaim-migrate @ 13828] More tiny changes. Forward port my saving password through failed connections change, and attach to the Message Send signal of the statusbox imhtml, so that hitting Enter sets the message immediately. I like the timeout; but this will probably make more sense to most people. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Wed, 21 Sep 2005 22:57:10 +0000
parents efb358543b1d
children 4b7fb30b8926
line wrap: on
line diff
--- a/src/account.c	Wed Sep 21 02:05:08 2005 +0000
+++ b/src/account.c	Wed Sep 21 22:57:10 2005 +0000
@@ -915,10 +915,9 @@
 	}
 
 	if(remember)
-		gaim_account_set_remember_password(account, TRUE);
+	  gaim_account_set_remember_password(account, TRUE);
 
-	if (gaim_account_get_remember_password(account))
-		gaim_account_set_password(account, entry);
+	gaim_account_set_password(account, entry);
 
 	gaim_connection_new(account, FALSE, entry);
 }
@@ -1010,6 +1009,8 @@
 
 	gc = gaim_account_get_connection(account);
 	gaim_connection_destroy(gc);
+	if (!gaim_account_get_remember_password(account))
+	  gaim_account_set_password(account, NULL);
 	gaim_account_set_connection(account, NULL);
 
 	account->disconnecting = FALSE;
@@ -1168,10 +1169,6 @@
 
 	g_free(account->password);
 	account->password = NULL;
-
-	if (!gaim_account_get_remember_password(account))
-		return;
-
 	account->password = (password == NULL ? NULL : g_strdup(password));
 
 	schedule_accounts_save();