# HG changeset patch # User Waqas Hussain # Date 1244132705 -18000 # Node ID a544e68a0989328c9846ee258dadb3fdb54bdd64 # Parent 7b20a3d87244a2842ff53bdb1bfb90f6d70e2531 modulemanager: Load mod_message, mod_iq and mod_presence implicitly diff -r 7b20a3d87244 -r a544e68a0989 core/modulemanager.lua --- a/core/modulemanager.lua Thu Jun 04 21:12:36 2009 +0500 +++ b/core/modulemanager.lua Thu Jun 04 21:25:05 2009 +0500 @@ -70,8 +70,13 @@ disabled_set[module] = true; end end + 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] then + if not disabled_set[module] and not is_loaded(host, module) then load(host, module); end end