Sun, 04 Jan 2009 02:55:59 +0000
Remove warning of already-loaded modules at startup
core/modulemanager.lua | file | annotate | diff | comparison | revisions |
--- a/core/modulemanager.lua Sat Jan 03 18:46:52 2009 +0500 +++ b/core/modulemanager.lua Sun Jan 04 02:55:59 2009 +0000 @@ -79,7 +79,9 @@ 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