Mercurial > pidgin
diff src/protocols/msn/msn.c @ 8595:1d5e31e518fc
[gaim-migrate @ 9346]
This brings back MSN formatting support, for now at least. Tim is working
on a patch to make per-message formatting (for MSN and other protocols that
decided to be crappy in design) a reality, so this should let him test it
out.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Tue, 06 Apr 2004 05:41:12 +0000 |
| parents | f96795b786d2 |
| children | 1e211dde3cae |
line wrap: on
line diff
--- a/src/protocols/msn/msn.c Tue Apr 06 05:16:02 2004 +0000 +++ b/src/protocols/msn/msn.c Tue Apr 06 05:41:12 2004 +0000 @@ -487,6 +487,7 @@ msn_http_session_init(session); gc->proto_data = session; + gc->flags |= GAIM_CONNECTION_HTML; gaim_connection_update_progress(gc, _("Connecting"), 0, MSN_CONNECT_STEPS); @@ -532,16 +533,20 @@ if (g_ascii_strcasecmp(who, gaim_account_get_username(account))) { MsnMessage *msg; MsnUser *user; - /*char *msgformat;*/ - + char *msgformat; + char *msgtext; + user = msn_user_new(session, who, NULL); + msn_import_html(message, &msgformat, &msgtext); + msg = msn_message_new(); msn_message_set_receiver(msg, user); - /*msn_message_set_attr(msg, "X-MMS-IM-Format", msgformat);*/ - msn_message_set_body(msg, message); + msn_message_set_attr(msg, "X-MMS-IM-Format", msgformat); + msn_message_set_body(msg, msgtext); - /*g_free(msgformat);*/ + g_free(msgformat); + g_free(msgtext); if (swboard != NULL) { if (!msn_switchboard_send_msg(swboard, msg))
