The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

CommandWhowas Class Reference

Handle /WHOWAS. More...

#include <cmd_whowas.h>

Inheritance diagram for CommandWhowas:

Inheritance graph
[legend]
Collaboration diagram for CommandWhowas:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CommandWhowas (InspIRCd *Instance)
CmdResult Handle (const std::vector< std::string > &parameters, User *user)
 Handle command.
CmdResult HandleInternal (const unsigned int id, const std::deque< classbase * > &parameters)
 Handle an internal request from another command, the core, or a module.
void AddToWhoWas (User *user)
void GetStats (Extensible *ext)
void PruneWhoWas (time_t t)
void MaintainWhoWas (time_t t)
virtual ~CommandWhowas ()

Private Attributes

whowas_users whowas
 Whowas container, contains a map of vectors of users tracked by WHOWAS.
whowas_users_fifo whowas_fifo
 Whowas container, contains a map of time_t to users tracked by WHOWAS.
std::string stats

Detailed Description

Handle /WHOWAS.

These command handlers can be reloaded by the core, and handle basic RFC1459 commands. Commands within modules work the same way, however, they can be fully unloaded, where these may not.

Definition at line 59 of file cmd_whowas.h.


Constructor & Destructor Documentation

CommandWhowas::CommandWhowas InspIRCd Instance  ) 
 

virtual CommandWhowas::~CommandWhowas  )  [virtual]
 


Member Function Documentation

void CommandWhowas::AddToWhoWas User user  ) 
 

void CommandWhowas::GetStats Extensible ext  ) 
 

CmdResult CommandWhowas::Handle const std::vector< std::string > &  parameters,
User user
[virtual]
 

Handle command.

Parameters:
parameters The parameters to the comamnd
pcnt The number of parameters passed to teh command
user The user issuing the command
Returns:
A value from CmdResult to indicate command success or failure.

Implements Command.

CmdResult CommandWhowas::HandleInternal const unsigned int  id,
const std::deque< classbase * > &  parameters
[virtual]
 

Handle an internal request from another command, the core, or a module.

Parameters:
Command ID
Zero or more parameters, whos form is specified by the command ID.
Returns:
Return CMD_SUCCESS on success, or CMD_FAILURE on failure. If the command succeeds but should remain local to this server, return CMD_LOCALONLY.

Reimplemented from Command.

void CommandWhowas::MaintainWhoWas time_t  t  ) 
 

void CommandWhowas::PruneWhoWas time_t  t  ) 
 


Member Data Documentation

std::string CommandWhowas::stats [private]
 

Definition at line 72 of file cmd_whowas.h.

whowas_users CommandWhowas::whowas [private]
 

Whowas container, contains a map of vectors of users tracked by WHOWAS.

Definition at line 64 of file cmd_whowas.h.

whowas_users_fifo CommandWhowas::whowas_fifo [private]
 

Whowas container, contains a map of time_t to users tracked by WHOWAS.

Definition at line 68 of file cmd_whowas.h.


The documentation for this class was generated from the following file: