# HG changeset patch # User Sulabh Mahajan # Date 1246686982 0 # Node ID 2a5c906e1104f61c508887fcf3cfcecba047a191 # Parent cbd67b8bf3cae281cd7caf22c89363707fd8f534 Complement the condition, fix the error I made in the last commit. diff -r cbd67b8bf3ca -r 2a5c906e1104 libpurple/protocols/yahoo/yahoo.c --- 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;