Changeset 6382 for trunk/licq/src/fifo.cpp
- Timestamp:
- 07/01/08 18:58:01 (5 months ago)
- Files:
-
- 1 modified
-
trunk/licq/src/fifo.cpp (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/licq/src/fifo.cpp
r6306 r6382 154 154 StringToStatus(char *_szStatus) 155 155 { 156 ICQOwner *o = gUserManager.FetchOwner(LOCK_R);156 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 157 157 unsigned long nStatus = o->AddStatusFlags(0); 158 158 int i =0; … … 172 172 { NULL, 0 } 173 173 }; 174 gUserManager.DropOwner( );174 gUserManager.DropOwner(o); 175 175 if (_szStatus[0] == '*') 176 176 { … … 335 335 static int fifo_status( int argc, const char *const *argv, void *data) 336 336 { 337 ICQOwner *o;338 337 CICQDaemon *d= (CICQDaemon *) data; 339 338 const char *szStatus = argv[1]; … … 348 347 349 348 // Determine the status to go to 350 o = gUserManager.FetchOwner(LOCK_R);349 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 351 350 bOffline = o->StatusOffline(); 352 gUserManager.DropOwner( );351 gUserManager.DropOwner(o); 353 352 nStatus = StringToStatus(const_cast<char *>(szStatus)); 354 353 … … 374 373 if( argc > 2 ) 375 374 { 376 ICQOwner *o = gUserManager.FetchOwner(LOCK_W);375 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_W); 377 376 o->SetAutoResponse(argv[2]); 378 gUserManager.DropOwner( );377 gUserManager.DropOwner(o); 379 378 } 380 379 … … 386 385 static int fifo_auto_response( int argc, const char *const *argv, void* /* data */) 387 386 { 388 ICQOwner *o;389 390 387 if( argc == 1 ) 391 388 { … … 394 391 } 395 392 396 o = gUserManager.FetchOwner(LOCK_W);393 ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_W); 397 394 o->SetAutoResponse(argv[1]); 398 gUserManager.DropOwner( );395 gUserManager.DropOwner(o); 399 396 400 397 return 0; … … 504 501 } 505 502 506 ICQ User *owner = gUserManager.FetchOwner(LOCK_R);503 ICQOwner* owner = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 507 504 d->icqSendSms(argv[1], argv[2], owner->Uin()); 508 gUserManager.DropOwner( );505 gUserManager.DropOwner(owner); 509 506 return 0; 510 507 }
