Changeset 6385

Show
Ignore:
Timestamp:
07/01/2008 07:09:55 PM (12 months ago)
Author:
flynd
Message:

Some more uin function usage in console plugin removed.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/console/src/console.cpp

    r6373 r6385  
    20982098      lFileList.push_back(strdup(data->szFileName)); 
    20992099 
    2100       winMain->event = licqDaemon->icqFileTransfer(strtoul(data->szId, (char **)NULL, 10), 
     2100      winMain->event = licqDaemon->icqFileTransfer(data->szId, 
    21012101              data->szFileName, data->szDescription, lFileList, ICQ_TCPxMSG_NORMAL, 
    21022102                       !bDirect); 
     
    30363036            // Passwords match if we are this far, now set up the new user 
    30373037            winMain->wprintf("Registration complete for user %s\n",data->szUin); 
    3038             gUserManager.SetOwnerUin(atol(data->szUin)); 
     3038            gUserManager.AddOwner(data->szUin, LICQ_PPID); 
    30393039            ICQOwner* owner = gUserManager.FetchOwner(LICQ_PPID, LOCK_W); 
    30403040            owner->SetPassword(data->szPassword1); 
     
    31283128          const char *home = getenv("HOME"); 
    31293129          ftman->ReceiveFiles(home); 
    3130           licqDaemon->icqFileTransferAccept(strtoul(data->szId, (char **)NULL, 10), ftman->LocalPort(), 
     3130          licqDaemon->icqFileTransferAccept(data->szId, ftman->LocalPort(), 
    31313131                                            f->Sequence(), f->MessageID(), f->IsDirect(), 
    31323132                                            f->FileDescription(), f->Filename(), f->FileSize()); 
     
    31613161      // XXX hack 
    31623162      unsigned long dummy[2] = { 0, 0 }; 
    3163       licqDaemon->icqFileTransferRefuse(strtoul(data->szId, (char **)NULL, 10), data->szReason, 
     3163      licqDaemon->icqFileTransferRefuse(data->szId, data->szReason, 
    31643164                                        f->Sequence(), dummy, true); 
    31653165