Changeset 2476 for trunk/rms

Show
Ignore:
Timestamp:
02/27/01 04:16:36 (8 years ago)
Author:
graham
Message:

Term command to exit licq.

Location:
trunk/rms/src
Files:
2 modified

Legend:

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

    r2398 r2476  
    7474}; 
    7575 
    76 static const unsigned short NUM_COMMANDS = 11; 
     76static const unsigned short NUM_COMMANDS = 12; 
    7777static struct Command commands[NUM_COMMANDS] = 
    7878{ 
     
    8181  { "QUIT", &CRMSClient::Process_QUIT, 
    8282    "Close the connection.  With an argument of 1 causes the plugin to unload." }, 
     83  { "TERM", &CRMSClient::Process_TERM, 
     84    "Terminate the licq daemon." }, 
    8385  { "INFO", &CRMSClient::Process_INFO, 
    8486    "Print out user information.  Argument is the uin, or none for personal." }, 
     
    681683 
    682684/*--------------------------------------------------------------------------- 
     685 * CRMSClient::Process_TERM 
     686 *-------------------------------------------------------------------------*/ 
     687int CRMSClient::Process_TERM() 
     688{ 
     689  licqDaemon->Shutdown(); 
     690  return -1; 
     691} 
     692 
     693 
     694/*--------------------------------------------------------------------------- 
    683695 * CRMSClient::Process_HELP 
    684696 *-------------------------------------------------------------------------*/ 
  • trunk/rms/src/rms.h

    r2348 r2476  
    6565 
    6666  int Process_QUIT(); 
     67  int Process_TERM(); 
    6768  int Process_INFO(); 
    6869  int Process_STATUS();