diff options
| author | Justin Frank <justinpfrank@protonmail.com> | 2019-03-13 12:46:53 -0700 |
|---|---|---|
| committer | Justin Frank <justinpfrank@protonmail.com> | 2019-04-08 17:05:55 -0700 |
| commit | 7866d88131837f7c514e73c57773185ba33beb7b (patch) | |
| tree | 06c12f75f219d5def89411732fa78eae4672e257 /src/command_manager.cc | |
| parent | c3f694a28f2da1454119ff49540377f4370f940d (diff) | |
Added ModuleLoad hook that uses the module name as the parameter
Diffstat (limited to 'src/command_manager.cc')
| -rw-r--r-- | src/command_manager.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/command_manager.cc b/src/command_manager.cc index 91c41bd3..aff9e3fd 100644 --- a/src/command_manager.cc +++ b/src/command_manager.cc @@ -65,6 +65,8 @@ void CommandManager::load_module(StringView module_name, Context& context) module->value.loaded = true; execute(module->value.commands, context); module->value.commands.clear(); + + context.hooks().run_hook(Hook::ModuleLoad, module_name, context); } struct parse_error : runtime_error |
