Mercurial > pidgin.yaz
comparison src/protocols/jabber/message.c @ 7773:d9a7774b5b3c
[gaim-migrate @ 8418]
JEP-0071 got updated to be more in line with XHTML modules or something, so now
we need this. wee!
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sat, 06 Dec 2003 07:37:14 +0000 |
parents | 9008b5be4275 |
children | 8a9f0754f0be |
comparison
equal
deleted
inserted
replaced
7772:85abf91f2387 | 7773:d9a7774b5b3c |
---|---|
450 jm->js = gc->proto_data; | 450 jm->js = gc->proto_data; |
451 jm->type = JABBER_MESSAGE_CHAT; | 451 jm->type = JABBER_MESSAGE_CHAT; |
452 jm->events = JABBER_MESSAGE_EVENT_COMPOSING; | 452 jm->events = JABBER_MESSAGE_EVENT_COMPOSING; |
453 jm->to = g_strdup(who); | 453 jm->to = g_strdup(who); |
454 | 454 |
455 buf = g_strdup_printf("<html xmlns='http://jabber.org/protocol/xhtml-im'><body>%s</body></html>", msg); | 455 buf = g_strdup_printf("<html xmlns='http://jabber.org/protocol/xhtml-im'><body xmlns='http://www.w3.org/1999/xhtml'>%s</body></html>", msg); |
456 | 456 |
457 gaim_markup_html_to_xhtml(buf, &xhtml, &jm->body); | 457 gaim_markup_html_to_xhtml(buf, &xhtml, &jm->body); |
458 g_free(buf); | 458 g_free(buf); |
459 | 459 |
460 if(!jbr || jbr->capabilities & JABBER_CAP_XHTML) | 460 if(!jbr || jbr->capabilities & JABBER_CAP_XHTML) |
482 jm = g_new0(JabberMessage, 1); | 482 jm = g_new0(JabberMessage, 1); |
483 jm->js = gc->proto_data; | 483 jm->js = gc->proto_data; |
484 jm->type = JABBER_MESSAGE_GROUPCHAT; | 484 jm->type = JABBER_MESSAGE_GROUPCHAT; |
485 jm->to = g_strdup_printf("%s@%s", chat->room, chat->server); | 485 jm->to = g_strdup_printf("%s@%s", chat->room, chat->server); |
486 | 486 |
487 buf = g_strdup_printf("<html xmlns='http://jabber.org/protocol/xhtml-im'><body>%s</body></html>", msg); | 487 buf = g_strdup_printf("<html xmlns='http://jabber.org/protocol/xhtml-im'><body xmlns='http://www.w3.org/1999/xhtml'>%s</body></html>", msg); |
488 | 488 |
489 gaim_markup_html_to_xhtml(buf, &xhtml, &jm->body); | 489 gaim_markup_html_to_xhtml(buf, &xhtml, &jm->body); |
490 g_free(buf); | 490 g_free(buf); |
491 | 491 |
492 if(chat->xhtml) | 492 if(chat->xhtml) |