Show
Ignore:
Timestamp:
07/03/08 22:13:49 (5 months ago)
Author:
flynd
Message:

More UIN removed.

Files:
1 modified

Legend:

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

    r6382 r6405  
    2828#include <cstring> 
    2929#include <cctype> 
     30#include <string> 
    3031#include <sys/types.h> 
    3132#include <unistd.h> 
     
    5758#include "licq_icqd.h" 
    5859 
     60using std::string; 
    5961 
    6062#define ReportMissingParams(cmdname) \ 
     
    469471      if (u != NULL) 
    470472      { 
    471         const char *szNumber = u->GetCellularNumber(); 
    472         if (strlen(szNumber)) 
    473           d->icqSendSms(szNumber, argv[2], u->Uin() ); 
     473        string number = u->GetCellularNumber(); 
     474        gUserManager.DropUser(u); 
     475        if (!number.empty()) 
     476          d->icqSendSms(szId, nPPID, number.c_str(), argv[2]); 
    474477        else 
    475478          gLog.Error("%sUnable to send SMS to %s, no SMS number found.\n", 
    476479                     L_ERRORxSTR, szId); 
    477  
    478         gUserManager.DropUser(u); 
    479480      } 
    480481    } 
     
    501502  } 
    502503 
    503   ICQOwner* owner = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    504   d->icqSendSms(argv[1], argv[2], owner->Uin()); 
    505   gUserManager.DropOwner(owner); 
     504  string id = gUserManager.OwnerId(LICQ_PPID); 
     505  d->icqSendSms(id.c_str(), LICQ_PPID, argv[1], argv[2]); 
    506506  return 0; 
    507507}