# HG changeset patch # User Nathan Walp # Date 1065222853 0 # Node ID eba5f7be0bc8b81b2f71f4055160cef753eccd92 # Parent 67f9b43c402ae4b97d4ce706e9068afaa8bfeba5 [gaim-migrate @ 7702] i think we're allowed to send XHTML to groupchats. if anyone can find a definitive answer about this, lemme know. committer: Tailor Script diff -r 67f9b43c402a -r eba5f7be0bc8 src/protocols/jabber/message.c --- a/src/protocols/jabber/message.c Fri Oct 03 23:01:13 2003 +0000 +++ b/src/protocols/jabber/message.c Fri Oct 03 23:14:13 2003 +0000 @@ -332,7 +332,7 @@ JabberBuddy *jb; JabberBuddyResource *jbr; char *buf; - char *xhtml, *plain; + char *xhtml; if(!who || !msg) return 0; @@ -348,10 +348,9 @@ buf = g_strdup_printf("%s", msg); - gaim_markup_html_to_xhtml(buf, &xhtml, &plain); + gaim_markup_html_to_xhtml(buf, &xhtml, &jm->body); g_free(buf); - jm->body = plain; if(!jbr || jbr->capabilities & JABBER_CAP_XHTML) jm->xhtml = xhtml; else @@ -378,7 +377,7 @@ jm->type = JABBER_MESSAGE_CHAT; jm->to = g_strdup_printf("%s@%s", chat->room, chat->server); - gaim_markup_html_to_xhtml(message, NULL, &jm->body); + gaim_markup_html_to_xhtml(message, &jm->xhtml, &jm->body); jabber_message_send(jm); jabber_message_free(jm);