# HG changeset patch # User Nathan Walp # Date 1065984028 0 # Node ID 04e80607aff22fa41c24f9f94ab1f2e951eb5d4a # Parent d3a7ff6a91bbf41ba7247adfbada381f51dd78f0 [gaim-migrate @ 7816] remove a big ugly hack that worked around someone else violating the spec. it didn't work, and caused formatting to get stripped for all incoming jabber messages. argh. committer: Tailor Script diff -r d3a7ff6a91bb -r 04e80607aff2 src/protocols/jabber/message.c --- a/src/protocols/jabber/message.c Sun Oct 12 05:59:05 2003 +0000 +++ b/src/protocols/jabber/message.c Sun Oct 12 18:40:28 2003 +0000 @@ -228,13 +228,9 @@ } else if(!strcmp(child->name, "body")) { if(!jm->body) jm->body = xmlnode_get_data(child); - } else if(!strcmp(child->name, "html") && child->child) { - /* check to see if the actually contains anything, - * otherwise we'll ignore it */ - char *txt = xmlnode_get_data(child); - if(!jm->xhtml && txt) + } else if(!strcmp(child->name, "html")) { + if(!jm->xhtml) jm->xhtml = xmlnode_to_str(child); - g_free(txt); } else if(!strcmp(child->name, "error")) { const char *code = xmlnode_get_attrib(child, "code"); char *code_txt = NULL;