aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-01-04 02:55:59 +0000
committerMatthew Wild <mwild1@gmail.com>2009-01-04 02:55:59 +0000
commit046e69447ea86916d08d0f834512794a588c6e4a (patch)
tree2db01ecd3120ae307aa71b341d03744c364266cc
parent430276629fba39232a2e211c626b8736712a8e54 (diff)
downloadprosody-046e69447ea86916d08d0f834512794a588c6e4a.tar.gz
prosody-046e69447ea86916d08d0f834512794a588c6e4a.zip
Remove warning of already-loaded modules at startup
-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