diff options
| author | 2013-06-01 22:57:59 +0200 | |
|---|---|---|
| committer | 2013-06-01 22:57:59 +0200 | |
| commit | 397dea782f9d38ea141d0270a33424376640f5cf (patch) | |
| tree | 2f1e1a187643c5b426d9b027af85d7727fa54c93 /include/command_parse.h | |
| parent | Improve command parser logic when there are more params than Command::max_params (diff) | |
CommandParser::ProcessCommand() and ProcessBuffer() cleanup
- Change return types to void
- Use a pointer to the command handler instead of an iterator
Diffstat (limited to 'include/command_parse.h')
| -rw-r--r-- | include/command_parse.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/command_parse.h b/include/command_parse.h index e865018e4..a49fc0b6e 100644 --- a/include/command_parse.h +++ b/include/command_parse.h @@ -49,7 +49,7 @@ class CoreExport CommandParser * @param user The user to parse the command for * @param cmd The command string to process */ - bool ProcessCommand(LocalUser *user, std::string &cmd); + void ProcessCommand(LocalUser* user, std::string& cmd); @@ -117,7 +117,7 @@ class CoreExport CommandParser * @param buffer The buffer line to process * @param user The user to whom this line belongs */ - bool ProcessBuffer(std::string &buffer,LocalUser *user); + void ProcessBuffer(std::string &buffer,LocalUser *user); /** Add a new command to the commands hash * @param f The new Command to add to the list |
