diff options
| author | 2014-01-26 13:12:01 +0100 | |
|---|---|---|
| committer | 2014-01-26 13:12:01 +0100 | |
| commit | 3fef0ed889eecb40b96a597924254560c81d4a09 (patch) | |
| tree | 78f1d41e26cd2b9f9a91442ef9ccc78683bad315 /src/command_parse.cpp | |
| parent | ProtocolInterface::SendEncapsulatedData() changes (diff) | |
Add ProtocolInterface::BroadcastEncap() and infrastructure for manually forwarding ENCAPs
Diffstat (limited to 'src/command_parse.cpp')
| -rw-r--r-- | src/command_parse.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp index 66b8dcd67..7133b3f05 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -118,7 +118,7 @@ Command* CommandParser::GetHandler(const std::string &commandname) // calls a handler function for a command -CmdResult CommandParser::CallHandler(const std::string &commandname, const std::vector<std::string>& parameters, User *user) +CmdResult CommandParser::CallHandler(const std::string& commandname, const std::vector<std::string>& parameters, User* user, Command** cmd) { Commandtable::iterator n = cmdlist.find(commandname); @@ -150,6 +150,8 @@ CmdResult CommandParser::CallHandler(const std::string &commandname, const std:: if (bOkay) { + if (cmd) + *cmd = n->second; return n->second->Handle(parameters,user); } } |
