changeset 6953:c54699c55286

[gaim-migrate @ 7500] a gross hack because i'm a nice guy committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Wed, 24 Sep 2003 22:29:09 +0000
parents 094b97348076
children 01c297526fad
files src/protocols/jabber/jabber.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);