Sun, 12 Oct 2003 18:40:28 +0000
[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.
| src/protocols/jabber/message.c | file | annotate | diff | comparison | revisions |
--- 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 <html> 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;