changeset 7241:04e80607aff2

[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 <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 12 Oct 2003 18:40:28 +0000
parents d3a7ff6a91bb
children 59ffe137176d
files src/protocols/jabber/message.c
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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;