diff options
author | Sadie Powell <sadie@witchery.services> | 2020-01-22 01:20:08 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-01-22 10:22:02 +0000 |
commit | b759870d742f1611ff64ca899e083d5467ebcf3b (patch) | |
tree | 81709b38d716244e1f4258e63a1a056be788c1ed /src/modules.cpp | |
parent | ec66b397b00b32a3b02e9b68c2c9b1017e699572 (diff) |
Add an event for when a command is blocked before execution.
Diffstat (limited to 'src/modules.cpp')
-rw-r--r-- | src/modules.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index b8a29ca43..54d7fc543 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -104,6 +104,7 @@ 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, bool) { DetachEvent(I_OnPostCommand); } +void Module::OnCommandBlocked(const std::string&, const CommandBase::Params&, LocalUser*) { DetachEvent(I_OnCommandBlocked); } void Module::OnUserInit(LocalUser*) { DetachEvent(I_OnUserInit); } void Module::OnUserPostInit(LocalUser*) { DetachEvent(I_OnUserPostInit); } ModResult Module::OnCheckReady(LocalUser*) { DetachEvent(I_OnCheckReady); return MOD_RES_PASSTHRU; } |