# HG changeset patch # User Stu Tomlinson # Date 1225557980 0 # Node ID 15d6fd6b08a2376ef9d517cf86ddcc026fab109f # Parent f108d707b6e1bfa9c7da2898237748b817ae31e0 Temporarily remember account password across network disconnection to allow automatic reconnection when the network returns to work even if the password is not permanently saved. diff -r f108d707b6e1 -r 15d6fd6b08a2 pidgin/gtkconn.c --- a/pidgin/gtkconn.c Sat Nov 01 16:45:09 2008 +0000 +++ b/pidgin/gtkconn.c Sat Nov 01 16:46:20 2008 +0000 @@ -208,7 +208,10 @@ while (l) { PurpleAccount *a = (PurpleAccount*)l->data; if (!purple_account_is_disconnected(a)) { + char *password = g_strdup(purple_account_get_password(a)); purple_account_disconnect(a); + purple_account_set_password(a, password); + g_free(password); } l = l->next; }