Changeset 6375 for trunk/auto-reply

Show
Ignore:
Timestamp:
07/01/08 06:34:48 (5 months ago)
Author:
flynd
Message:

Use the new DropOwner? function to properly specify which owner to unlock.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/auto-reply/src/autoreply.cpp

    r6369 r6375  
    9898  { 
    9999    unsigned long s = StringToStatus(m_szStatus); 
    100     ICQOwner *o = gUserManager.FetchOwner(LOCK_R); 
     100    ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    101101    bool b = o->StatusOffline(); 
    102     gUserManager.DropOwner(); 
     102    gUserManager.DropOwner(o); 
    103103    if (s == INT_MAX) 
    104104      gLog.Warn("%sInvalid startup status.\n", L_AUTOREPxSTR);