diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-01-04 02:55:59 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-01-04 02:55:59 +0000 |
commit | 046e69447ea86916d08d0f834512794a588c6e4a (patch) | |
tree | 2db01ecd3120ae307aa71b341d03744c364266cc | |
parent | 430276629fba39232a2e211c626b8736712a8e54 (diff) | |
download | prosody-046e69447ea86916d08d0f834512794a588c6e4a.tar.gz prosody-046e69447ea86916d08d0f834512794a588c6e4a.zip |
Remove warning of already-loaded modules at startup
-rw-r--r-- | core/modulemanager.lua | 4 |
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 |