diff options
| author | 2018-09-11 09:03:47 +0100 | |
|---|---|---|
| committer | 2018-09-11 09:03:47 +0100 | |
| commit | 7e9ec8e49060024033efe55342c933b86288e31c (patch) | |
| tree | aa39a4fb8319382ac492e168525a18bebae2f732 /src/modules.cpp | |
| parent | Add a module for hiding mode changes from unprivileged users. (diff) | |
Amend OnPostCommand to specify whether the command is loopcalled.
This restores previous behaviour which was lost when the original
line parameter was removed.
Diffstat (limited to 'src/modules.cpp')
| -rw-r--r-- | src/modules.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index 3a574fdda..3062aad43 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -94,7 +94,7 @@ void Module::OnLoadModule(Module*) { DetachEvent(I_OnLoadModule); } void Module::OnUnloadModule(Module*) { DetachEvent(I_OnUnloadModule); } void Module::OnBackgroundTimer(time_t) { DetachEvent(I_OnBackgroundTimer); } ModResult Module::OnPreCommand(std::string&, CommandBase::Params&, LocalUser*, bool) { DetachEvent(I_OnPreCommand); return MOD_RES_PASSTHRU; } -void Module::OnPostCommand(Command*, const CommandBase::Params&, LocalUser*, CmdResult) { DetachEvent(I_OnPostCommand); } +void Module::OnPostCommand(Command*, const CommandBase::Params&, LocalUser*, CmdResult, bool) { DetachEvent(I_OnPostCommand); } void Module::OnUserInit(LocalUser*) { DetachEvent(I_OnUserInit); } ModResult Module::OnCheckReady(LocalUser*) { DetachEvent(I_OnCheckReady); return MOD_RES_PASSTHRU; } ModResult Module::OnUserRegister(LocalUser*) { DetachEvent(I_OnUserRegister); return MOD_RES_PASSTHRU; } |
