Diff

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
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