pidgin: 5c0b873f: jabber: Use the error code instead of st...
darkrain42 at pidgin.im
darkrain42 at pidgin.im
Tue Dec 1 00:00:54 EST 2009
-----------------------------------------------------------------
Revision: 5c0b873fe3c22c45d708e6455514edac31619055
Ancestor: d5e860ee48c6c12f5962c772e68a5ad820ccd329
Author: darkrain42 at pidgin.im
Date: 2009-12-01T04:56:47
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/5c0b873fe3c22c45d708e6455514edac31619055
Modified files:
libpurple/protocols/jabber/parser.c
ChangeLog:
jabber: Use the error code instead of string matching.
QuLogic pointed out this was more appropriate.
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/parser.c a86d436ab9930c524e1e7e6bdccb145a176a65e8
+++ libpurple/protocols/jabber/parser.c a4dc7834e29af6032ca942feb324151c438b69a5
@@ -147,8 +147,7 @@ jabber_parser_structured_error_handler(v
*/
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
More information about the Commits
mailing list