libpurple/protocols/jabber/auth.c

changeset 19993
867bd1dfe680
parent 19859
71d37b57eff2
child 20093
04f3c1dcd2cf
child 20445
c900767c024b
--- a/libpurple/protocols/jabber/auth.c	Fri Sep 14 00:01:47 2007 +0000
+++ b/libpurple/protocols/jabber/auth.c	Fri Sep 14 00:03:30 2007 +0000
@@ -538,6 +538,9 @@
 					(err_code = xmlnode_get_attrib(error, "code")) &&
 					!strcmp(err_code, "401")) {
 			js->gc->wants_to_die = TRUE;
+			/* Clear the pasword if it isn't being saved */
+			if (!purple_account_get_remember_password(js->gc->account))
+				purple_account_set_password(js->gc->account, NULL);
 		}
 
 		purple_connection_error(js->gc, msg);

mercurial