diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-06-04 21:25:05 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-06-04 21:25:05 +0500 |
commit | 8805419906429201c604efca3f6a7e82c6bd5503 (patch) | |
tree | 8d79b7102a8263a4b2b6d1e98959840d087f64ce /core | |
parent | 602805644694ad714e72448097c29b98c86a5287 (diff) | |
download | prosody-8805419906429201c604efca3f6a7e82c6bd5503.tar.gz prosody-8805419906429201c604efca3f6a7e82c6bd5503.zip |
modulemanager: Load mod_message, mod_iq and mod_presence implicitly
Diffstat (limited to 'core')
-rw-r--r-- | core/modulemanager.lua | 7 |
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 |