summaryrefslogtreecommitdiff
path: root/src/command_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/command_manager.cc')
-rw-r--r--src/command_manager.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/command_manager.cc b/src/command_manager.cc
index aff9e3fd..1fdfa34d 100644
--- a/src/command_manager.cc
+++ b/src/command_manager.cc
@@ -63,7 +63,8 @@ void CommandManager::load_module(StringView module_name, Context& context)
return;
module->value.loaded = true;
- execute(module->value.commands, context);
+ Context empty_context{Context::EmptyContextFlag{}};
+ execute(module->value.commands, empty_context);
module->value.commands.clear();
context.hooks().run_hook(Hook::ModuleLoad, module_name, context);