changeset 19637:5ee8869b5130

Ka-Hing reminded me that we should set the password to NULL when it's wrong.
author Mark Doliner <mark@kingant.net>
date Tue, 04 Sep 2007 06:45:32 +0000
parents e6548df6262e
children fc8a6f67b030
files libpurple/protocols/myspace/myspace.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.c	Tue Sep 04 06:04:36 2007 +0000
+++ b/libpurple/protocols/myspace/myspace.c	Tue Sep 04 06:45:32 2007 +0000
@@ -1778,9 +1778,12 @@
 	/* Destroy session if fatal. */
 	if (msim_msg_get(msg, "fatal")) {
 		purple_debug_info("msim", "fatal error, closing\n");
-		if (err == 260)
+		if (err == 260) {
 			/* Incorrect password */
 			session->gc->wants_to_die = TRUE;
+			if (!purple_account_get_remember_password(session->account))
+				purple_account_set_password(session->account, NULL);
+		}
 		purple_connection_error(session->gc, full_errmsg);
 	} else {
 		purple_notify_error(session->account, g_strdup(_("MySpaceIM Error")),