# HG changeset patch # User Paul Aurich # Date 1259643407 0 # Node ID 6ebacc1710b24890bb888b5b58eb479d3854b6e3 # Parent f6f35d5960e9eeb1709e22dabb7b37c9b8883aee jabber: Use the error code instead of string matching. QuLogic pointed out this was more appropriate. diff -r f6f35d5960e9 -r 6ebacc1710b2 libpurple/protocols/jabber/parser.c --- 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