Mercurial > pidgin
changeset 24358:15d6fd6b08a2
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.
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 01 Nov 2008 16:46:20 +0000 |
parents | f108d707b6e1 |
children | dcb1960ed69d |
files | pidgin/gtkconn.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; }