diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/command_parse.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/command_parse.h b/include/command_parse.h index 895fbb6e5..7809b67b8 100644 --- a/include/command_parse.h +++ b/include/command_parse.h @@ -96,6 +96,10 @@ class CoreExport CommandParser * If the usemax parameter is true (the default) the function only parses until it reaches * ServerInstance->Config->MaxTargets number of targets, to stop abuse via spam. * + * The OnPostCommand hook is executed for each item after it has been processed by the handler, with the + * original line parameter being empty (to indicate that the command in that form was created by this function). + * This only applies if the user executing the command is local. + * * If there are two lists and the second list runs out of tokens before the first list then parameters[extra] * will be an EMPTY string when Handle() is called for the remaining tokens in the first list, even if it is * in the middle of parameters[]! Moreover, empty tokens in the second list are allowed, and those will also @@ -104,7 +108,7 @@ class CoreExport CommandParser * as the last item in the vector. * * @param user The user who sent the command - * @param CommandObj the command object to call for each parameter in the list + * @param handler The command handler to call for each parameter in the list * @param parameters Parameter list as a vector of strings * @param splithere The first parameter index to split as a comma seperated list * @param extra The second parameter index to split as a comma seperated list, or -1 (the default) if there is only one list @@ -113,7 +117,7 @@ class CoreExport CommandParser * command handler for each entry on the list. When this occurs, the caller should return without doing anything, * otherwise it should continue into its main section of code. */ - static bool LoopCall(User* user, Command* CommandObj, const std::vector<std::string>& parameters, unsigned int splithere, int extra = -1, bool usemax = true); + static bool LoopCall(User* user, Command* handler, const std::vector<std::string>& parameters, unsigned int splithere, int extra = -1, bool usemax = true); /** Take a raw input buffer from a recvq, and process it on behalf of a user. * @param buffer The buffer line to process |