summaryrefslogtreecommitdiff
path: root/include/command_parse.h
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-01-26 13:12:01 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-01-26 13:12:01 +0100
commit3fef0ed889eecb40b96a597924254560c81d4a09 (patch)
tree78f1d41e26cd2b9f9a91442ef9ccc78683bad315 /include/command_parse.h
parent92cc388aebd55245b24aef5950afe845feffe9e2 (diff)
Add ProtocolInterface::BroadcastEncap() and infrastructure for manually forwarding ENCAPs
Diffstat (limited to 'include/command_parse.h')
-rw-r--r--include/command_parse.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/command_parse.h b/include/command_parse.h
index 6682bc4fb..70544b0c8 100644
--- a/include/command_parse.h
+++ b/include/command_parse.h
@@ -49,13 +49,15 @@ class CoreExport CommandParser
* @param commandname The command to find. This should be in uppercase.
* @param parameters Parameter list
* @param user The user to call the handler on behalf of
+ * @param cmd If non-NULL and the command was executed it is set to the command handler,
+ * otherwise it isn't written to.
* @return This method will return CMD_SUCCESS if the command handler was found and called,
* and the command completeld successfully. It will return CMD_FAILURE if the command handler was found
* and called, but the command did not complete successfully, and it will return CMD_INVALID if the
* command simply did not exist at all or the wrong number of parameters were given, or the user
* was not privilaged enough to execute the command.
*/
- CmdResult CallHandler(const std::string &commandname, const std::vector<std::string>& parameters, User *user);
+ CmdResult CallHandler(const std::string& commandname, const std::vector<std::string>& parameters, User* user, Command** cmd = NULL);
/** Get the handler function for a command.
* @param commandname The command required. Always use uppercase for this parameter.