aboutsummaryrefslogtreecommitdiffstats
path: root/core/modulemanager.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r--core/modulemanager.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 354d8810..7ead4db0 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -79,7 +79,9 @@ function load_modules_for_host(host)
local modules_enabled = config.get(host, "core", "modules_enabled");
if modules_enabled then
for _, module in pairs(modules_enabled) do
- load(host, module);
+ if not is_loaded(host, module) then
+ load(host, module);
+ end
end
end
end