[icq-devel] SNAC 13/* Information



Vitaly Goncharuk filfob at yahoo.com
Wed Apr 3 12:49:29 CEST 2002


Hello rad2k,

Wednesday, April 03, 2002, 07:37:51, you wrote:

r> Nono u dont get it.
r> im talking about 'adding' contacts to the buddy list. not to MY client list.
r> the server wont add those contacts who havent authorized me.
r> it just rejects the add but returns ok.
======

addind user:
youSend> Snac 0x13/0x11 (open contact list)
youSend> Snac 0x13/0x08 (adding user)
ServerSend> Snac 0x13/0x0e
===
2a 02 a4 55 00 14 00 13  00 0e 80 00 00 02 00 08
00 06 00 01 00 02 00 02  00 0e
===
if last 2 bytes equals 00 00, then user don't want authorization, so
go to  case (1)
if last 2 bytes equals 00 0e, then user want authorization, so go to case (2)
if last 2 bytes equals 00 0a, then there are some error's, so fix errors ;)
====
Next steps

if case (1) then{
youSend> Snac 0x13/0x09 (update user list in category )
ServerSend> Snac 0x13/0x0e
youSend> Snac 0x13/0x12 (close contact list)

}

if case (2) then{
youSend> Snac 0x13/0x12 (close contact list)
youSend> Snac 0x13/0x18 (authorization request)
youSend> Snac 0x13/0x11 (open contact list)
youSend> Snac 0x13/0x08 (adding user) + 0x00 0x66 after nick name
ServerSend> Snac 0x13/0x0e
youSend> Snac 0x13/0x09 (update user list in category )
ServerSend> Snac 0x13/0x0e
youSend> Snac 0x13/0x12 (close contact list)


}

Good luck!



-- 
Best regards,
 Vitaly Goncharuk                          mailto:filfob at filfob.com.ua

 [04/03/2002 13:35]                          icq:[94386395]




More information about the icq-devel mailing list