InspIRCd  2.0
Public Member Functions | List of all members
SplitCommand Class Reference
Inheritance diagram for SplitCommand:
Command ServiceProvider classbase

Public Member Functions

 SplitCommand (Module *me, const std::string &cmd, int minpara=0, int maxpara=0)
virtual CmdResult Handle (const std::vector< std::string > &parameters, User *user)
virtual CmdResult HandleLocal (const std::vector< std::string > &parameters, LocalUser *user)
virtual CmdResult HandleRemote (const std::vector< std::string > &parameters, RemoteUser *user)
virtual CmdResult HandleServer (const std::vector< std::string > &parameters, FakeUser *user)
- Public Member Functions inherited from Command
 Command (Module *me, const std::string &cmd, int minpara=0, int maxpara=0)
virtual RouteDescriptor GetRouting (User *user, const std::vector< std::string > &parameters)
virtual void EncodeParameter (std::string &parameter, int index)
virtual void DecodeParameter (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)
- Public Member Functions inherited from classbase
virtual CullResult cull ()

Additional Inherited Members

- Public Attributes inherited from Command
char flags_needed
const unsigned int min_params
const unsigned int max_params
unsigned long use_count
unsigned long total_bytes
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

Member Function Documentation

◆ Handle()

CmdResult SplitCommand::Handle ( const std::vector< std::string > &  parameters,
User user 

Handle the command from a user.

parametersThe parameters for the command.
userThe user who issued the command.
Return CMD_SUCCESS on success, or CMD_FAILURE on failure.

Implements Command.

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