From c40bb6fc009bd0933290b61717605c0d5bf68aee Mon Sep 17 00:00:00 2001 From: Justin Frank Date: Sat, 16 Mar 2019 01:38:32 -0700 Subject: [PATCH] Evaluate modules in an empty context --- src/command_manager.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);