changeset 29720:3fbae92e7e0b

oscar: Forget un-remembered passwords on Incorrect Password w/ clientLogin. This brings it in line with the BUCP logic (and other prpls). Fixes #11671, I assume.
author Paul Aurich <paul@darkrain42.org>
date Tue, 13 Apr 2010 04:30:08 +0000
parents 5abe9f74a1de
children 098ee47b858c
files libpurple/protocols/oscar/clientlogin.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/oscar/clientlogin.c	Tue Apr 13 02:50:55 2010 +0000
+++ b/libpurple/protocols/oscar/clientlogin.c	Tue Apr 13 04:30:08 2010 +0000
@@ -428,6 +428,9 @@
 				"was %d (%d): %s\n", status_code, status_detail_code, response);
 
 		if (status_code == 330 && status_detail_code == 3011) {
+			PurpleAccount *account = purple_connection_get_account(gc);
+			if (!purple_account_get_remember_password(account))
+				purple_account_set_password(account, NULL);
 			purple_connection_error_reason(gc,
 					PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED,
 					_("Incorrect password"));