Ignore:
Timestamp:
2006-05-22T09:11:49Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
226fce1
Parents:
619a681
Message:

Trying to fix charset issues with outgoing AIM chat messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/chat.c

    r619a681 r73cf7fd  
    159159        if (flags & AIM_CHATFLAGS_AWAY)
    160160                aim_addtlvtochain_noval(&otl, 0x0007);
    161 
     161       
     162        /* [WvG] This wasn't there originally, but we really should send
     163                 the right charset flags, as we also do with normal
     164                 messages. Hope this will work. :-) */
     165        if (flags & AIM_CHATFLAGS_UNICODE)
     166                aimbs_put16(&fr->data, 0x0002);
     167        else if (flags & AIM_CHATFLAGS_ISO_8859_1)
     168                aimbs_put16(&fr->data, 0x0003);
     169        else
     170                aimbs_put16(&fr->data, 0x0000);
     171       
     172        aimbs_put16(&fr->data, 0x0000);
     173       
    162174        /*
    163175         * SubTLV: Type 1: Message
Note: See TracChangeset for help on using the changeset viewer.