Software /
code /
prosody
Changeset
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 |
parents | 671:c7519f0c9a2c |
children | 675:cc82394fea22 |
files | core/modulemanager.lua |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
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