Changeset 6438 for trunk/licq

Show
Ignore:
Timestamp:
07/09/08 09:45:38 (5 months ago)
Author:
eugene
Message:

Fixed user TLVs handling received in the initial contact list packet.

Location:
trunk/licq
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/licq/include/licq_user.h

    r6430 r6438  
    896896  void AddTLV(TLVPtr); 
    897897  void RemoveTLV(unsigned long); 
     898  void SetTLVList(TLVList& tlvs); 
    898899  TLVList GetTLVList(); 
    899900 
  • trunk/licq/src/icqd-srv.cpp

    r6435 r6438  
    42014201 
    42024202            CUserProperties* data = iter->second; 
     4203 
     4204            TLVList list = packet.getTLVList(); 
     4205            for (TLVListIter it = list.begin(); it != list.end(); it++) 
     4206              data->tlvs[it->first] = it->second; 
    42034207 
    42044208#define COPYTLV(type, var) \ 
     
    63746378      continue; 
    63756379 
     6380    // For now, just save all the TLVs. We should change this to have awaiting auth check 
     6381    // for the 0x0066 TLV, SMS number if it has the 0x013A TLV, etc 
     6382    u->SetTLVList(data->tlvs); 
     6383 
    63766384    if (data->newAlias != NULL) 
    63776385      u->SetAlias(data->newAlias.get()); 
     
    64036411        delete[] tmp; 
    64046412      } 
    6405     } 
    6406  
    6407     // For now, just save all the TLVs. We should change this to have awaiting auth check 
    6408     // for the 0x0066 TLV, SMS number if it has the 0x013A TLV, etc 
    6409     TLVListIter tlvIter; 
    6410     for (tlvIter = data->tlvs.begin(); tlvIter != data->tlvs.end(); tlvIter++) 
    6411     { 
    6412       TLVPtr tlv = tlvIter->second; 
    6413       u->AddTLV(tlv); 
    64146413    } 
    64156414 
  • trunk/licq/src/user.cpp

    r6418 r6438  
    38753875} 
    38763876 
     3877void ICQUser::SetTLVList(TLVList& tlvs) 
     3878{ 
     3879  myTLVs.clear(); 
     3880 
     3881  for (TLVListIter it = tlvs.begin(); it != tlvs.end(); it++) 
     3882    myTLVs[it->first] = it->second; 
     3883} 
     3884 
    38773885//=====ICQOwner================================================================= 
    38783886