aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-08-30 21:24:28 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2010-08-30 21:24:28 +0200
commitdf61c35ad36e18965b3b0fdccf0fa830b0768108 (patch)
tree7142eb0fff042336baa92ab0c648a6d9e8f0df94
parentb0a89cc6e5ffff050ddecd09e9af8eb6723f9ba6 (diff)
Warn the user when his/her AIM/ICQ password seems to be too long. For some
people with long passwords the removal of old ICQ-only authentication introduced login issues since the extra chars in the password upset the server.
-rw-r--r--protocols/oscar/oscar.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/oscar/oscar.c b/protocols/oscar/oscar.c
index db6a28f4..9283628a 100644
--- a/protocols/oscar/oscar.c
+++ b/protocols/oscar/oscar.c
@@ -516,6 +516,14 @@ static int gaim_parse_auth_resp(aim_session_t *sess, aim_frame_t *fr, ...) {
case 0x05:
/* Incorrect nick/password */
imcb_error(ic, _("Incorrect nickname or password."));
+ {
+ int max = od->icq ? 8 : 16;
+ if (strlen(ic->acc->pass) > max)
+ imcb_log(ic, "Note that the maximum password "
+ "length supported by this protocol is "
+ "%d characters, try logging in using "
+ "a shorter password.", max);
+ }
// plugin_event(event_error, (void *)980, 0, 0, 0);
break;
case 0x11: