aboutsummaryrefslogtreecommitdiffstats
path: root/core/modulemanager.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-06-04 21:25:05 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-06-04 21:25:05 +0500
commit8805419906429201c604efca3f6a7e82c6bd5503 (patch)
tree8d79b7102a8263a4b2b6d1e98959840d087f64ce /core/modulemanager.lua
parent602805644694ad714e72448097c29b98c86a5287 (diff)
downloadprosody-8805419906429201c604efca3f6a7e82c6bd5503.tar.gz
prosody-8805419906429201c604efca3f6a7e82c6bd5503.zip
modulemanager: Load mod_message, mod_iq and mod_presence implicitly
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r--core/modulemanager.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 24fbe3d6..18b511e6 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -70,11 +70,16 @@ function load_modules_for_host(host)
disabled_set[module] = true;
end
end
- for _, module in ipairs(modules_enabled) do
+ for _, module in ipairs({"presence", "message", "iq"}) do
if not disabled_set[module] then
load(host, module);
end
end
+ for _, module in ipairs(modules_enabled) do
+ if not disabled_set[module] and not is_loaded(host, module) then
+ load(host, module);
+ end
+ end
end
-- Load modules from just this host