changeset 14890:6e17975cd3e0

[gaim-migrate @ 17662] If an oscar account is unable to connect because the password is wrong, then set the password to the empty string. This might help address bug 1414151, "Too many steps to be able to re-enter a password." How do people feel about this? We could probably do it for MSN, too. Also, beta 5 on Sunday? committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 03 Nov 2006 17:11:43 +0000
parents ea920bd4a00b
children 063fe56aa427
files libgaim/protocols/oscar/oscar.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libgaim/protocols/oscar/oscar.c	Fri Nov 03 04:41:50 2006 +0000
+++ b/libgaim/protocols/oscar/oscar.c	Fri Nov 03 17:11:43 2006 +0000
@@ -1282,8 +1282,9 @@
 			gaim_connection_error(gc, _("Invalid screen name."));
 			break;
 		case 0x05:
-			/* Incorrect nick/password */
+			/* Incorrect password */
 			gc->wants_to_die = TRUE;
+			gaim_account_set_password(account, NULL);
 			gaim_connection_error(gc, _("Incorrect password."));
 			break;
 		case 0x11: