# HG changeset patch # User Paul Aurich # Date 1259643407 0 # Node ID 48b95d5033037e6f88bae8213cac6391bc36464c # Parent a8de6baeee6374fe71a8f48834e8fd53022d67db jabber: Use the error code instead of string matching. QuLogic pointed out this was more appropriate. diff -r a8de6baeee63 -r 48b95d503303 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