aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/oscar/chat.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-05-22 11:11:49 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-05-22 11:11:49 +0200
commit73cf7fd5f066d3c0720f58af840affa3e61bad12 (patch)
treeff33f75152bea4769375158b4538159b03f498bb /protocols/oscar/chat.c
parent619a68171055ca6ec460557176bd59817c09b736 (diff)
Trying to fix charset issues with outgoing AIM chat messages.
Diffstat (limited to 'protocols/oscar/chat.c')
-rw-r--r--protocols/oscar/chat.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/protocols/oscar/chat.c b/protocols/oscar/chat.c
index 033c2577..8843b499 100644
--- a/protocols/oscar/chat.c
+++ b/protocols/oscar/chat.c
@@ -158,7 +158,19 @@ int aim_chat_send_im(aim_session_t *sess, aim_conn_t *conn, guint16 flags, const
*/
if (flags & AIM_CHATFLAGS_AWAY)
aim_addtlvtochain_noval(&otl, 0x0007);
-
+
+ /* [WvG] This wasn't there originally, but we really should send
+ the right charset flags, as we also do with normal
+ messages. Hope this will work. :-) */
+ if (flags & AIM_CHATFLAGS_UNICODE)
+ aimbs_put16(&fr->data, 0x0002);
+ else if (flags & AIM_CHATFLAGS_ISO_8859_1)
+ aimbs_put16(&fr->data, 0x0003);
+ else
+ aimbs_put16(&fr->data, 0x0000);
+
+ aimbs_put16(&fr->data, 0x0000);
+
/*
* SubTLV: Type 1: Message
*/