# HG changeset patch # User Nathan Walp # Date 1064442549 0 # Node ID c54699c552868fbe1fe3356bcb9f41981745fc46 # Parent 094b97348076496b9c1350c11bcde7bfacdac17e [gaim-migrate @ 7500] a gross hack because i'm a nice guy committer: Tailor Script diff -r 094b97348076 -r c54699c55286 src/protocols/jabber/jabber.c --- a/src/protocols/jabber/jabber.c Wed Sep 24 21:47:12 2003 +0000 +++ b/src/protocols/jabber/jabber.c Wed Sep 24 22:29:09 2003 +0000 @@ -1437,7 +1437,8 @@ if (!type || !strcasecmp(type, "normal") || !strcasecmp(type, "chat")) { from = jid_full(p->from); - if ((y = xmlnode_get_tag(p->x, "html"))) { + /* a gross hack because i'm a nice guy */ + if ((y = xmlnode_get_tag(p->x, "html")) && xmlnode_get_tag(y, "body")) { msg = xmlnode2str(y); } else if ((y = xmlnode_get_tag(p->x, "body"))) { msg = xmlnode_get_data(y); @@ -1518,7 +1519,8 @@ struct jabber_chat *jc; static int i = 0; - if ((y = xmlnode_get_tag(p->x, "html"))) { + /* a gross hack because i'm a nice guy */ + if ((y = xmlnode_get_tag(p->x, "html")) && xmlnode_get_tag(y, "body")) { msg = xmlnode2str(y); } else if ((y = xmlnode_get_tag(p->x, "body"))) { msg = xmlnode_get_data(y);