Hi

Dima K. wrote:
I haven't tried it, but I doubt it would work, there are many more
things you would need to change than that 1 line.

As far as I can see, other messages are already sent with TLV 5, I just removed the "special TLV 2 treatment" for messages.


//------------------------------------------------------
  case ICQ_CMDxSUB_URL:
  case ICQ_CMDxSUB_CONTACTxLIST:
  case ICQ_CMDxSUB_AUTHxGRANTED:
  case ICQ_CMDxSUB_AUTHxREFUSED:
  case ICQ_CMDxSUB_AUTHxREQUEST:
  case ICQ_CMDxSUB_ADDEDxTOxLIST:
    nTypeLen = 9+msgLen;
    nFormat = 4;
    break;
...
    switch (nFormat)
    {
    case 1:
        nTLVType = 0x02;


tlvData.PackUnsignedLongBE(0x05010001); tlvData.PackUnsignedShortBE(0x0101); tlvData.PackChar(0x01); tlvData.PackUnsignedShortBE(msgLen + 4); tlvData.PackUnsignedLongBE(0); tlvData.Pack(szMessage, msgLen); break;


case 4: nTLVType = 0x05;


tlvData.PackUnsignedLong(gUserManager.OwnerUin()); tlvData.PackChar(msgType); tlvData.PackChar(0); // message flags tlvData.PackLNTS(szMessage); break; } //------------------------------------------------------

It seems to me that nFormat=1 sends TLV 2 messages and nFormat=4 sends TLV 5 messages. All requests except text messages are sent with nFormat=4, normally. Why are text messages sent with nFormat=1 and TLV 2 by default??

--
Richard Hirner <[EMAIL PROTECTED]>
http://richard.hirners.com/



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Licq-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/licq-devel

Reply via email to