Software /
code /
prosody
Changeset
1309:a544e68a0989
modulemanager: Load mod_message, mod_iq and mod_presence implicitly
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 04 Jun 2009 21:25:05 +0500 |
parents | 1308:7b20a3d87244 |
children | 1310:b5a7a9fc9161 |
files | core/modulemanager.lua |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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