From 046e69447ea86916d08d0f834512794a588c6e4a Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 4 Jan 2009 02:55:59 +0000 Subject: Remove warning of already-loaded modules at startup --- core/modulemanager.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3