projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
083763d
)
Remove warning of already-loaded modules at startup
author
Matthew Wild
<mwild1@gmail.com>
Sun, 4 Jan 2009 02:55:59 +0000
(
02:55
+0000)
committer
Matthew Wild
<mwild1@gmail.com>
Sun, 4 Jan 2009 02:55:59 +0000
(
02:55
+0000)
core/modulemanager.lua
patch
|
blob
|
history
diff --git
a/core/modulemanager.lua
b/core/modulemanager.lua
index 354d881005aba03f083cc53dd60bc17d548a24d3..7ead4db034420030f161609c278d9ad6e1d74681 100644
(file)
--- 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