[icq-devel] Add to Invisible / visible / ignore list



Christophe Minguet (freesurf) c.minguet at freesurf.fr
Tue Dec 3 23:49:22 CET 2002


ok.. there was definitly on rule on contact id's most significant bit
... it must be 0 ... 

-----Message d'origine-----
De : icq-devel-admin at blipp.com [mailto:icq-devel-admin at blipp.com] De la
part de Christophe Minguet (freesurf)
Envoyé : mardi 3 décembre 2002 23:36
À : icq-devel at blipp.com
Objet : [icq-devel] Add to Invisible / visible / ignore list


Hello Everybody !
 
I'm working on contact list management, and i try to add contacts to
invisible / visible / ignore lists.
so i'm sending the following packet : 
 
2A 02 78 FF 00 1C 00 13 00 08 00 00 00 00 A2 09      SNAC 13/08 :
addBuddy
   00 08 36 37 38 35 36 35 31 39                     BUIN : 67856519
   00 00                                             GROUP ID : 0  (this
one contains the invisible / visible / ignore list contacts)
   A0 67                                             contact id
(randomly generated, unique in full contact list)
   00 03                                             user type :
invisible list entry 
   00 00                                             2 0 bytes


 
and quite often, i recieve from server : 
 
2A 02 FD 6B 00 14 00 13 00 0E 80 00 00 00 A2 09       SNAC 13/0E :
update ACK
   00 06 00 01 00 02 00 02                            TLV 6 unknown ,
not described in the docs i found, not always present
   00 0A                                              error code : 10 

 
 
result is the user is NOT added to the list ...
what is strange is sometimes i recieve an ACK error code 0 and it works
.. only the random contact id is different.....
 
see: i just retried some minutes later : 
2A 02 79 01 00 1C 00 13 00 08 00 00 00 00 A2 0B 
   00 08 36 37 38 35 36 35 31 39 
   00 00 
   4E DD 
   00 03 

 
and i recieved : 
2A 02 FD 70 00 14 00 13 00 0E 80 00 00 00 A2 0B 
   00 06 00 01 00 02 00 02 
   00 00         => error code 0 : it worked ! i checked this time , it
was really added to ignore list

 
i deleted the entry, it worked, 
i re tried to add to invisible list new id is : D5 BB
it failed ! 
 
huuum is there a rule on ID's most significant bit ? 
any idea ? 
Thanks
 
Chris
 
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://vic20.blipp.com/pipermail/icq-devel/attachments/20021203/057ccd38/attachment.htm 


More information about the icq-devel mailing list