changeset 29109:6ebacc1710b2

jabber: Use the error code instead of string matching. QuLogic pointed out this was more appropriate.
author Paul Aurich <paul@darkrain42.org>
date Tue, 01 Dec 2009 04:56:47 +0000
parents f6f35d5960e9
children bc1eb4dacd00 4ab6f0479bc5
files libpurple/protocols/jabber/parser.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/parser.c	Tue Dec 01 02:54:22 2009 +0000
+++ b/libpurple/protocols/jabber/parser.c	Tue Dec 01 04:56:47 2009 +0000
@@ -147,8 +147,7 @@
 		 */
 		return;
 
-	if (error->level == XML_ERR_FATAL && error->message != NULL
-			&& g_str_equal(error->message, "Extra content at the end of the document\n"))
+	if (error->level == XML_ERR_FATAL && error->code == XML_ERR_DOCUMENT_END)
 		/*
 		 * This is probably more annoying than the vcard-temp error; it occurs
 		 * because we disconnect in most cases without waiting for the receiving