From 3a7dd5b129450b94e0a87b8ad5009da70905b8e5 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 17 Sep 2006 14:01:53 +0000 Subject: Add const std::string &original_command to OnPreCommand and OnPostCommand, which gives the entire untouched command string and params in all its colon-ny glory git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5265 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/command_parse.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/command_parse.cpp') diff --git a/src/command_parse.cpp b/src/command_parse.cpp index a158ff6a3..881e1abc7 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -327,7 +327,7 @@ void CommandParser::ProcessCommand(userrec *user, std::string &cmd) std::transform(command.begin(), command.end(), command.begin(), ::toupper); int MOD_RESULT = 0; - FOREACH_RESULT(I_OnPreCommand,OnPreCommand(command,command_p,items,user,false)); + FOREACH_RESULT(I_OnPreCommand,OnPreCommand(command,command_p,items,user,false,cmd)); if (MOD_RESULT == 1) { return; } @@ -374,7 +374,7 @@ void CommandParser::ProcessCommand(userrec *user, std::string &cmd) cm->second->total_bytes += cmd.length(); int MOD_RESULT = 0; - FOREACH_RESULT(I_OnPreCommand,OnPreCommand(command,command_p,items,user,true)); + FOREACH_RESULT(I_OnPreCommand,OnPreCommand(command,command_p,items,user,true,cmd)); if (MOD_RESULT == 1) return; @@ -387,7 +387,7 @@ void CommandParser::ProcessCommand(userrec *user, std::string &cmd) if (result != CMD_USER_DELETED) { - FOREACH_MOD(I_OnPostCommand,OnPostCommand(command, command_p, items, user, result)); + FOREACH_MOD(I_OnPostCommand,OnPostCommand(command, command_p, items, user, result,cmd)); } return; } -- cgit v1.2.3