pidgin: bcd6dbfb: Temporarily remember account password ac...

nosnilmot at pidgin.im nosnilmot at pidgin.im
Sat Nov 1 12:50:38 EDT 2008


-----------------------------------------------------------------
Revision: bcd6dbfb605e7969c586fa89f022a3877b9a8c48
Ancestor: 8ae38e4108c4c7c302ab389b0491db4a884bad40
Author: nosnilmot at pidgin.im
Date: 2008-11-01T16:46:20
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/bcd6dbfb605e7969c586fa89f022a3877b9a8c48

Modified files:
        pidgin/gtkconn.c

ChangeLog: 

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.

-------------- next part --------------
============================================================
--- pidgin/gtkconn.c	8f434427ffc3242a2dbd492689d80a9dfcbe1cee
+++ pidgin/gtkconn.c	9c65425207fe72d7140bc9bb166988997c257d45
@@ -208,7 +208,10 @@ static void pidgin_connection_network_di
 	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;
 	}


More information about the Commits mailing list