Show
Ignore:
Timestamp:
07/01/08 18:58:01 (5 months ago)
Author:
flynd
Message:

Marked old owner functions in user manager as deprecated. Updated daemon to use newer owner calls.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/licq/src/fifo.cpp

    r6306 r6382  
    154154StringToStatus(char *_szStatus) 
    155155{ 
    156   ICQOwner *o = gUserManager.FetchOwner(LOCK_R); 
     156  ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    157157  unsigned long nStatus = o->AddStatusFlags(0); 
    158158  int i =0; 
     
    172172    { NULL,       0                      } 
    173173  }; 
    174   gUserManager.DropOwner(); 
     174  gUserManager.DropOwner(o); 
    175175  if (_szStatus[0] == '*') 
    176176  { 
     
    335335static int fifo_status( int argc, const char *const *argv, void *data) 
    336336{ 
    337   ICQOwner *o; 
    338337  CICQDaemon *d= (CICQDaemon *) data; 
    339338  const char *szStatus = argv[1]; 
     
    348347 
    349348  // Determine the status to go to 
    350   o = gUserManager.FetchOwner(LOCK_R); 
     349  ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    351350  bOffline = o->StatusOffline(); 
    352   gUserManager.DropOwner(); 
     351  gUserManager.DropOwner(o); 
    353352  nStatus = StringToStatus(const_cast<char *>(szStatus)); 
    354353 
     
    374373  if( argc > 2 ) 
    375374  { 
    376     ICQOwner *o = gUserManager.FetchOwner(LOCK_W); 
     375    ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_W); 
    377376    o->SetAutoResponse(argv[2]); 
    378     gUserManager.DropOwner(); 
     377    gUserManager.DropOwner(o); 
    379378  } 
    380379 
     
    386385static int fifo_auto_response( int argc, const char *const *argv, void* /* data */) 
    387386{ 
    388   ICQOwner *o;  
    389  
    390387  if( argc == 1 ) 
    391388  { 
     
    394391  } 
    395392 
    396   o = gUserManager.FetchOwner(LOCK_W); 
     393  ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_W); 
    397394  o->SetAutoResponse(argv[1]); 
    398   gUserManager.DropOwner(); 
     395  gUserManager.DropOwner(o); 
    399396 
    400397  return 0; 
     
    504501  } 
    505502 
    506   ICQUser *owner = gUserManager.FetchOwner(LOCK_R); 
     503  ICQOwner* owner = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    507504  d->icqSendSms(argv[1], argv[2], owner->Uin()); 
    508   gUserManager.DropOwner(); 
     505  gUserManager.DropOwner(owner); 
    509506  return 0; 
    510507}