diff options
| author | 2008-10-25 16:41:12 +0000 | |
|---|---|---|
| committer | 2008-10-25 16:41:12 +0000 | |
| commit | 5b91ea259b0c01e2c936f1be8ee1f888d2704aa1 (patch) | |
| tree | 69937f2bd74dacd3b2422d22266905acb95117df /src/command_parse.cpp | |
| parent | By moving OnPreCommand call in two places, modules (even with unverified comm... (diff) | |
Explain the duplicate OnPreCommand call.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10717 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/command_parse.cpp')
| -rw-r--r-- | src/command_parse.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp index fd1039088..7204461c2 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -330,6 +330,10 @@ bool CommandParser::ProcessCommand(User *user, std::string &cmd) command_p.push_back(lparam); } + /* + * We call OnPreCommand here seperately if the command exists, so the magic above can + * truncate to max_params if necessary. -- w00t + */ int MOD_RESULT = 0; FOREACH_RESULT(I_OnPreCommand,OnPreCommand(command, command_p, user, false, cmd)); if (MOD_RESULT == 1) |
