From 397dea782f9d38ea141d0270a33424376640f5cf Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sat, 1 Jun 2013 22:57:59 +0200 Subject: CommandParser::ProcessCommand() and ProcessBuffer() cleanup - Change return types to void - Use a pointer to the command handler instead of an iterator --- include/command_parse.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/command_parse.h') 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 -- cgit v1.3.1-10-gc9f91