src/protocols/jabber/message.c

changeset 13385
6fb64ae23761
parent 13304
4ad9297570d2
child 13484
350fd422b021
--- a/src/protocols/jabber/message.c	Fri Mar 03 03:00:33 2006 +0000
+++ b/src/protocols/jabber/message.c	Fri Mar 03 03:38:36 2006 +0000
@@ -283,8 +283,11 @@
 			if(!jm->thread_id)
 				jm->thread_id = xmlnode_get_data(child);
 		} else if(!strcmp(child->name, "body")) {
-			if(!jm->body)
-				jm->body = xmlnode_to_str(child, NULL);
+			if(!jm->body) {
+				char *msg = xmlnode_to_str(child, NULL);
+				jm->body = gaim_strdup_withhtml(msg);
+				g_free(msg);
+			}
 		} else if(!strcmp(child->name, "html")) {
 			if(!jm->xhtml && xmlnode_get_child(child, "body"))
 				jm->xhtml = xmlnode_to_str(child, NULL);

mercurial