aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorGravatar Peter Powell2018-09-11 09:03:47 +0100
committerGravatar Peter Powell2018-09-11 09:03:47 +0100
commit7e9ec8e49060024033efe55342c933b86288e31c (patch)
treeaa39a4fb8319382ac492e168525a18bebae2f732 /src/modules.cpp
parentAdd a module for hiding mode changes from unprivileged users. (diff)
downloadinspircd++-7e9ec8e49060024033efe55342c933b86288e31c.tar.gz
inspircd++-7e9ec8e49060024033efe55342c933b86288e31c.tar.bz2
inspircd++-7e9ec8e49060024033efe55342c933b86288e31c.zip
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.cpp2
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; }