Changeset 6361

Show
Ignore:
Timestamp:
06/27/08 16:40:20 (2 months ago)
Author:
flynd
Message:

Some more uin functions in console plugin changed.

Location:
trunk/console/src
Files:
2 modified

Legend:

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

    r6359 r6361  
    550550    break; 
    551551  case SIGNAL_ADDxSERVERxLIST: 
    552     licqDaemon->icqRenameUser(s->Uin()); 
     552    licqDaemon->icqRenameUser(s->Id()); 
    553553    break; 
    554554  case SIGNAL_NEWxPROTO_PLUGIN: 
     
    32223222                     u->GetAlias()); 
    32233223    gUserManager.DropUser(u); 
    3224     char *p; 
    3225     unsigned long uin = strtoul(szId, &p,10); 
    3226     if( (p == 0 || (p && !*p)) && nPPID == LICQ_PPID ) 
    3227       winMain->event = licqDaemon->icqOpenSecureChannel(uin); 
     3224    if (nPPID == LICQ_PPID ) 
     3225      winMain->event = licqDaemon->icqOpenSecureChannel(szId); 
    32283226  } 
    32293227  else if(strcasecmp(szStatus, "close") == 0) 
     
    32323230                     u->GetAlias()); 
    32333231    gUserManager.DropUser(u); 
    3234     char *p; 
    3235     unsigned long uin = strtoul(szId, &p,10); 
    3236     if( (p == 0 || (p && !*p)) && nPPID == LICQ_PPID ) 
    3237       winMain->event = licqDaemon->icqCloseSecureChannel(uin); 
     3232    if (nPPID == LICQ_PPID ) 
     3233      winMain->event = licqDaemon->icqCloseSecureChannel(szId); 
    32383234  } 
    32393235  else 
  • trunk/console/src/console_menu.cpp

    r6285 r6361  
    447447  if (bAlert) 
    448448  { 
    449     int nUin = atol(szArg); 
    450     licqDaemon->icqAlertUser(nUin); 
    451     winMain->wprintf("%C%AAlerted user %ld they were added.\n", 
    452                      m_cColorInfo->nColor, m_cColorInfo->nAttr, 
    453                      nUin); 
     449    licqDaemon->icqAlertUser(szArg, LICQ_PPID); 
     450    winMain->wprintf("%C%AAlerted user %s they were added.\n", 
     451        m_cColorInfo->nColor, m_cColorInfo->nAttr, szArg); 
    454452  } 
    455453