|
|||
|
|||
|


Public Member Functions | |
| ModuleAntiBottler (InspIRCd *Me) | |
| virtual | ~ModuleAntiBottler () |
| virtual Version | GetVersion () |
| Returns the version number of a Module. | |
| virtual int | OnPreCommand (std::string &command, std::vector< std::string > ¶meters, User *user, bool validated, const std::string &original_line) |
| Called whenever any command is about to be executed. | |
Definition at line 18 of file m_antibottler.cpp.
|
|
Definition at line 21 of file m_antibottler.cpp. References ModuleManager::Attach(), I_OnPreCommand, InspIRCd::Modules, and Module::ServerInstance. |
|
|
Definition at line 31 of file m_antibottler.cpp. |
|
|
Returns the version number of a Module. The method should return a Version object with its version information assigned via Version::Version Reimplemented from Module. Definition at line 35 of file m_antibottler.cpp. References API_VERSION, and VF_VENDOR. |
|
||||||||||||||||||||||||
|
Called whenever any command is about to be executed. This event occurs for all registered commands, wether they are registered in the core, or another module, and for invalid commands. Invalid commands may only be sent to this function when the value of validated is false. By returning 1 from this method you may prevent the command being executed. If you do this, no output is created by the core, and it is down to your module to produce any output neccessary. Note that unless you return 1, you should not destroy any structures (e.g. by using InspIRCd::QuitUser) otherwise when the command's handler function executes after your method returns, it will be passed an invalid pointer to the user object and crash!)
Reimplemented from Module. Definition at line 40 of file m_antibottler.cpp. References CommandParser::CallHandler(), MAXBUF, InspIRCd::Parser, Module::ServerInstance, and strlcpy(). |