InspIRCd  3.0
Public Member Functions | Public Attributes | List of all members
CommandWhowas Class Reference

#include <cmd_whowas.h>

Inheritance diagram for CommandWhowas:
Command CommandBase ServiceProvider classbase

Public Member Functions

 CommandWhowas (Module *parent)
 
CmdResult Handle (const std::vector< std::string > &parameters, User *user)
 
- Public Member Functions inherited from Command
 Command (Module *me, const std::string &cmd, unsigned int minpara=0, unsigned int maxpara=0)
 
void RegisterService () CXX11_OVERRIDE
 
 ~Command ()
 
- Public Member Functions inherited from CommandBase
 CommandBase (Module *me, const std::string &cmd, unsigned int minpara=0, unsigned int maxpara=0)
 
virtual RouteDescriptor GetRouting (User *user, const std::vector< std::string > &parameters)
 
virtual void EncodeParameter (std::string &parameter, int index)
 
void Disable (bool setting)
 
bool IsDisabled ()
 
bool WorksBeforeReg ()
 
- Public Member Functions inherited from ServiceProvider
 ServiceProvider (Module *Creator, const std::string &Name, ServiceType Type)
 
void DisableAutoRegister ()
 
- Public Member Functions inherited from classbase
virtual CullResult cull ()
 

Public Attributes

WhoWas::Manager manager
 
- Public Attributes inherited from Command
bool force_manual_route
 
- Public Attributes inherited from CommandBase
char flags_needed
 
const unsigned int min_params
 
const unsigned int max_params
 
unsigned long use_count
 
bool disabled
 
bool works_before_reg
 
bool allow_empty_last_param
 
std::string syntax
 
std::vector< TranslateType > translation
 
int Penalty
 
- Public Attributes inherited from ServiceProvider
ModuleRef creator
 
const std::string name
 
const ServiceType service
 

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.

Member Function Documentation

◆ Handle()

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

Handle command.

Parameters
parametersThe parameters to the comamnd
userThe user issuing the command
Returns
A value from CmdResult to indicate command success or failure.

Implements Command.

Member Data Documentation

◆ manager

WhoWas::Manager CommandWhowas::manager

Manager handling all whowas database related tasks


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