Mercurial > pidgin
comparison src/protocols/msn/msn.c @ 7199:aeaa751d32f7
[gaim-migrate @ 7768]
This should fix a bug a user had with displaying Chinese messages. It
should work just dandy. Thanks Ambrose C. LI.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 09 Oct 2003 00:03:18 +0000 |
parents | 67f9b43c402a |
children | 1930e3d00ecd |
comparison
equal
deleted
inserted
replaced
7198:78f3252e9d10 | 7199:aeaa751d32f7 |
---|---|
500 user = msn_user_new(session, who, NULL); | 500 user = msn_user_new(session, who, NULL); |
501 | 501 |
502 msg = msn_message_new(); | 502 msg = msn_message_new(); |
503 msn_message_set_receiver(msg, user); | 503 msn_message_set_receiver(msg, user); |
504 msn_message_set_attr(msg, "X-MMS-IM-Format", | 504 msn_message_set_attr(msg, "X-MMS-IM-Format", |
505 "FN=Arial; EF=; CO=0; PF=0"); | 505 "FN=MS%20Sans%20Serif; EF=; CO=0; PF=0"); |
506 msn_message_set_body(msg, message); | 506 msn_message_set_body(msg, message); |
507 | 507 |
508 if (swboard != NULL) { | 508 if (swboard != NULL) { |
509 if (!msn_switchboard_send_msg(swboard, msg)) | 509 if (!msn_switchboard_send_msg(swboard, msg)) |
510 msn_switchboard_destroy(swboard); | 510 msn_switchboard_destroy(swboard); |
1004 return -EINVAL; | 1004 return -EINVAL; |
1005 | 1005 |
1006 send = gaim_str_add_cr(message); | 1006 send = gaim_str_add_cr(message); |
1007 | 1007 |
1008 msg = msn_message_new(); | 1008 msg = msn_message_new(); |
1009 msn_message_set_attr(msg, "X-MMS-IM-Format", "FN=Arial; EF=; CO=0; PF=0"); | 1009 msn_message_set_attr(msg, "X-MMS-IM-Format", |
1010 "FN=MS%20Sans%20Serif; EF=; CO=0; PF=0"); | |
1010 msn_message_set_body(msg, send); | 1011 msn_message_set_body(msg, send); |
1011 | 1012 |
1012 g_free(send); | 1013 g_free(send); |
1013 | 1014 |
1014 if (!msn_switchboard_send_msg(swboard, msg)) { | 1015 if (!msn_switchboard_send_msg(swboard, msg)) { |