src/protocols/jabber/message.c

changeset 11788
2c46fd5caac8
parent 11576
484149428832
child 12216
d80739091a63
--- a/src/protocols/jabber/message.c	Mon Oct 24 03:37:31 2005 +0000
+++ b/src/protocols/jabber/message.c	Mon Oct 24 03:43:50 2005 +0000
@@ -286,7 +286,7 @@
 			if(!jm->body)
 				jm->body = xmlnode_to_str(child, NULL);
 		} else if(!strcmp(child->name, "html")) {
-			if(!jm->xhtml && child->data_sz > 0)
+			if(!jm->xhtml && xmlnode_get_child(child, "body"))
 				jm->xhtml = xmlnode_to_str(child, NULL);
 		} else if(!strcmp(child->name, "error")) {
 			const char *code = xmlnode_get_attrib(child, "code");

mercurial