Comparison

core/modulemanager.lua @ 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
parent 1259:6bd11bca9725
child 1318:66f76c332a75
child 1326:4f1994f7bd54
comparison
equal deleted inserted replaced
1308:7b20a3d87244 1309:a544e68a0989
68 if modules_disabled then 68 if modules_disabled then
69 for _, module in ipairs(modules_disabled) do 69 for _, module in ipairs(modules_disabled) do
70 disabled_set[module] = true; 70 disabled_set[module] = true;
71 end 71 end
72 end 72 end
73 for _, module in ipairs({"presence", "message", "iq"}) do
74 if not disabled_set[module] then
75 load(host, module);
76 end
77 end
73 for _, module in ipairs(modules_enabled) do 78 for _, module in ipairs(modules_enabled) do
74 if not disabled_set[module] then 79 if not disabled_set[module] and not is_loaded(host, module) then
75 load(host, module); 80 load(host, module);
76 end 81 end
77 end 82 end
78 end 83 end
79 84