changeset 27286:2a5c906e1104

Complement the condition, fix the error I made in the last commit.
author Sulabh Mahajan <sulabh@soc.pidgin.im>
date Sat, 04 Jul 2009 05:56:22 +0000
parents cbd67b8bf3ca
children f24a8b9d1be3
files libpurple/protocols/yahoo/yahoo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo.c	Sat Jul 04 05:17:11 2009 +0000
+++ b/libpurple/protocols/yahoo/yahoo.c	Sat Jul 04 05:56:22 2009 +0000
@@ -1792,7 +1792,7 @@
 				case 1212:
 					/* Password incorrect */
 					/* Set password to NULL. Avoids account locking. Brings dialog to enter password if clicked on Re-enable account */
-					if (purple_account_get_remember_password(purple_connection_get_account(gc)))
+					if (!purple_account_get_remember_password(purple_connection_get_account(gc)))
 						purple_account_set_password(purple_connection_get_account(gc), NULL);
 					error_reason = g_strdup(_("Incorrect Password"));
 					error = PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED;