diff options
author | Peter Powell <petpow@saberuk.com> | 2018-08-09 20:44:43 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-08-10 13:55:32 +0100 |
commit | 213e4d9680e427bc16b94c0c1b627919cacb171b (patch) | |
tree | 16f4f36d2c7e7e227af5c10a2d1b054bb7488f6e /include | |
parent | 626003a7dcbb00d4344e3554a2e265792dbcc952 (diff) |
Remove the original line parameter of On{Pre,Post}Command.
In the brave new world of message tags and alternate wire formats
this is no longer something that is appropriate to expose.
In reality it was only ever used by m_alias which now reconstitutes
the command name and parameters into a RFC 1459-style message for
whatever it needs to do.
Diffstat (limited to 'include')
-rw-r--r-- | include/modules.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/modules.h b/include/modules.h index 44cda7d19..773e3b49f 100644 --- a/include/modules.h +++ b/include/modules.h @@ -717,10 +717,9 @@ class CoreExport Module : public classbase, public usecountbase * @param user the user issuing the command * @param validated True if the command has passed all checks, e.g. it is recognised, has enough parameters, the user has permission to execute it, etc. * You should only change the parameter list and command string if validated == false (e.g. before the command lookup occurs). - * @param original_line The entire original line as passed to the parser from the user * @return 1 to block the command, 0 to allow */ - virtual ModResult OnPreCommand(std::string& command, CommandBase::Params& parameters, LocalUser* user, bool validated, const std::string& original_line); + virtual ModResult OnPreCommand(std::string& command, CommandBase::Params& parameters, LocalUser* user, bool validated); /** Called after any command has been executed. * This event occurs for all registered commands, wether they are registered in the core, @@ -731,9 +730,8 @@ class CoreExport Module : public classbase, public usecountbase * @param parameters An array of array of characters containing the parameters for the command * @param user the user issuing the command * @param result The return code given by the command handler, one of CMD_SUCCESS or CMD_FAILURE - * @param original_line The entire original line as passed to the parser from the user */ - virtual void OnPostCommand(Command* command, const CommandBase::Params& parameters, LocalUser* user, CmdResult result, const std::string& original_line); + virtual void OnPostCommand(Command* command, const CommandBase::Params& parameters, LocalUser* user, CmdResult result); /** Called when a user is first connecting, prior to starting DNS lookups, checking initial * connect class, or accepting any commands. |