--- 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");