Software /
code /
prosody
Diff
core/modulemanager.lua @ 672:7db1044d2fab
Remove warning of already-loaded modules at startup
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 04 Jan 2009 02:55:59 +0000 |
parent | 670:d5cf10b7fc44 |
child | 675:cc82394fea22 |
line wrap: on
line diff
--- 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