changeset 27139:48bf7a893709

yahoo login ver 16: Add another case of error reporting. Ask user to visit yahoo website in case of locked account.
author Sulabh Mahajan <sulabh@soc.pidgin.im>
date Sat, 06 Jun 2009 08:18:02 +0000
parents 5d4e33e3938a
children c96a7d9361bb
files libpurple/protocols/yahoo/yahoo.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo.c	Sat Jun 06 04:02:28 2009 +0000
+++ b/libpurple/protocols/yahoo/yahoo.c	Sat Jun 06 08:18:02 2009 +0000
@@ -1741,7 +1741,7 @@
 					break;
 				case 1213:
 					/* security lock from too many failed login attempts */
-					error_reason = g_strdup(_("Account locked: Too many failed login attempts"));
+					error_reason = g_strdup(_("Account locked: Too many failed login attempts.\nLogging into the Yahoo! website may fix this."));
 					error = PURPLE_CONNECTION_ERROR_OTHER_ERROR;
 					break;
 				case 1235:
@@ -1749,9 +1749,10 @@
 					error_reason = g_strdup(_("Username does not exist"));
 					error = PURPLE_CONNECTION_ERROR_INVALID_USERNAME;
 					break;
+				case 1214:
 				case 1236:
 					/* indicates a lock of some description */
-					error_reason = g_strdup(_("Account locked: See the debug log"));
+					error_reason = g_strdup(_("Account locked: Unknown reason.\nLogging into the Yahoo! website may fix this."));
 					error = PURPLE_CONNECTION_ERROR_OTHER_ERROR;
 					break;
 				case 100: