Home Submitter: stricq@owlnet.net Edit

CLI_ADDBUDDY

Channel: 2SNAC(19,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 SRV_REPLYROSTER.

Parameters

Data type Content Name Description
WORD xx xx UINLEN The length of the following UIN.
DATA ... UIN The UIN as ASCII text.
WORD xx xx TAG The tag ID of the group tin the contact list the contact was added to.
WORD xx xx ID A random ID for this contact. It is passed in a later CLI_UPDATEGROUP as part of TLV(C8).
WORD xx xx TYPE The type of the contact entry:
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 import time.
WORD xx xx LEN The length of the following TLVs in bytes.
TLV(200) 00 c8 xx xx ... unnamed Sent only with the group header, a list of all IDs in this group.
TLV(202) 00 ca xx xx ... unnamed Unknown.
TLV(212) 00 d4 00 04 TIME IMPORTTIME The import time.
TLV(305) 01 31 xx xx ... NICK The nick name of the UIN.
TLV(102) 00 66 xx xx ... unnamed This UIN is still awaiting authorization.

Examples

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


HomeEdit