yahoo login ver 16: Add another case of error reporting. Ask user to visit yahoo website in case of locked account.

Sat, 06 Jun 2009 08:18:02 +0000

author
Sulabh Mahajan <sulabh@pidgin.im>
date
Sat, 06 Jun 2009 08:18:02 +0000
changeset 27272
49fee240fd96
parent 27271
3cc7e9171982
child 27273
d54e8ab49e79

yahoo login ver 16: Add another case of error reporting. Ask user to visit yahoo website in case of locked account.

libpurple/protocols/yahoo/yahoo.c file | annotate | diff | comparison | revisions
--- 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:

mercurial