diff libpurple/protocols/msn/nexus.c @ 17437:8e20bb5640ed

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.
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 02 Jun 2007 14:57:17 +0000
parents 6b4e778ee4b4
children 941965d6fd88 4403cecc7cd6
line wrap: on
line diff
--- 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';
 			}
 		}