# HG changeset patch # User Stu Tomlinson # Date 1180796237 0 # Node ID 8e20bb5640ed25a769059da66aab2bd5bc15e15b # Parent ff04387682ce1df9ca36fa3b79e5ab6b3ff67340 Fix problems with MSN when you use a wrong password. The server helpfully includes this response in an HTTP header: "The e-mail address or password is incorrect. Do one of the following or try again:" But nothing in the header indicates what "the following" might be. So we just truncate that useless bit. Also set wants_to_die so we don't try reconnecting with a known bad password. diff -r ff04387682ce -r 8e20bb5640ed libpurple/protocols/msn/nexus.c --- a/libpurple/protocols/msn/nexus.c Sat Jun 02 14:26:43 2007 +0000 +++ b/libpurple/protocols/msn/nexus.c Sat Jun 02 14:57:17 2007 +0000 @@ -247,6 +247,8 @@ temp = g_strndup(error, c - error); error = purple_url_decode(temp); g_free(temp); + if ((temp = strstr(error, " Do one of the following or try again:")) != NULL) + *temp = '\0'; } } diff -r ff04387682ce -r 8e20bb5640ed libpurple/protocols/msn/session.c --- a/libpurple/protocols/msn/session.c Sat Jun 02 14:26:43 2007 +0000 +++ b/libpurple/protocols/msn/session.c Sat Jun 02 14:57:17 2007 +0000 @@ -316,6 +316,7 @@ "temporarily.")); break; case MSN_ERROR_AUTH: + gc->wants_to_die = TRUE; msg = g_strdup_printf(_("Unable to authenticate: %s"), (info == NULL ) ? _("Unknown error") : info);