diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-05-25 01:04:18 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2006-05-25 01:04:18 +0200 |
commit | 601e81362bbf4e4d1e686334b35d3bdcd87314d2 (patch) | |
tree | 53ed2250bfc35b9e8da568b6f624a530d323ef32 /protocols/oscar/chat.c | |
parent | 46ad029950221205d1eb6201ec2f01c7231876c2 (diff) | |
parent | fc630f9fb47690c30feaf4738727a213d633afc9 (diff) |
[merge] Wilmer
Diffstat (limited to 'protocols/oscar/chat.c')
-rw-r--r-- | protocols/oscar/chat.c | 14 |
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 */ |