From 8805419906429201c604efca3f6a7e82c6bd5503 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Thu, 4 Jun 2009 21:25:05 +0500 Subject: modulemanager: Load mod_message, mod_iq and mod_presence implicitly --- core/modulemanager.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3