CLI_ADDBUDDY Channel: 2 SNAC(13,8) This SNAC notifies the server that the client has added a new contact to it's contact list. The data for this SNAC is in the same group format as described in SNAC(13,6) SRV_REPLYROSTER. Parameters Length/TLV Content (If Fixed) Designations Description 2 xx xx STRLEN Length of the following UIN in ASCII format. Varies xx .. UIN The user's UIN in ASCII format. 2 xx xx TAG This is the Tag ID of the group in the contact list that this contact was added to. 2 xx xx ID This is the specific, random, ID generated for this contact. It is passed in a later SNAC(13,9) CLI_UPDATEGROUP as part of TLV(C8). 2 xx xx TYPE This field seems to indicate what type of group this is. Seen: 0x0000 - A normal contact list entry 0x0001 - A Larger Group header 0x0004 - Unknown 0x000E - A contact on the Ignore List 0x0013 - This group's TLV contains the time(NULL) 'Import Time' 2 xx xx BYTELEN A count of the number of following bytes. If 0, nothing follows. This marks the end of a group at the last byte in the count. TLV .. TLV If BYTELEN is 0 this is not present, otherwise, A number of TLVs will follow BYTELEN. TLVs Seen: TLV(00C8) - Sent only with the Group header, this is a list of all IDs in this group TLV(00CA) - Unknown TLV(00D4) - Contains the 'Import Time' time(NULL) TLV(0131) - Nickname of a UIN TLV(013A) - Locally assigned SMS number of a UIN TLV(0066) - This UIN is still awaiting authorization -------------------------------------------------------------------------------- 2A 02 1D 14 00 2D FLAP Channel 2, Seq 0x1D14, Length 0x2D 00 13 00 08 00 00 00 02 00 08 SNAC 0x13/0x08, Ref 0x00020008, Flags 0 00 08 Length 34 38 37 31 30 37 36 34 '48710764' 10 A7 Tag, Group this contact was added to 4E 6B ID, Randomly generated 00 00 Type, Normal contact list entry 00 11 Count, 11 bytes follow 01 31 00 0D 5B 42 32 5D 20 44 65 6D TLV(0131) Nick 6F 6E 69 61 43