diff src/connection.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 18c18cbc0967
children a647f92e1d57
line wrap: on
line diff
--- a/src/connection.c	Wed Sep 21 02:05:08 2005 +0000
+++ b/src/connection.c	Wed Sep 21 22:57:10 2005 +0000
@@ -433,9 +433,10 @@
 gaim_connection_disconnect_cb(gpointer data)
 {
 	GaimAccount *account = data;
-
+	char *password = g_strdup(gaim_account_get_password(account));
 	gaim_account_disconnect(account);
-
+	gaim_account_set_password(account, password);
+	g_free(password);
 	return FALSE;
 }