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 (User *user, const Params &parameters) CXX11_OVERRIDE
- 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 CommandBase::Params &parameters)
virtual void EncodeParameter (std::string &parameter, unsigned int index)
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
unsigned char flags_needed
const unsigned int min_params
const unsigned int max_params
unsigned long use_count
bool works_before_reg
bool allow_empty_last_param
std::string syntax
std::vector< TranslateType > translation
unsigned 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 ( User user,
const Params parameters 

Handle command.

parametersThe parameters to the comamnd
userThe user issuing the command
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: