core/modulemanager.lua

changeset 672
7db1044d2fab
parent 670
d5cf10b7fc44
child 675
cc82394fea22
--- a/core/modulemanager.lua	Sat Jan 03 18:46:52 2009 +0500
+++ b/core/modulemanager.lua	Sun Jan 04 02:55:59 2009 +0000
@@ -79,7 +79,9 @@
 	local modules_enabled = config.get(host, "core", "modules_enabled");
 	if modules_enabled then
 		for _, module in pairs(modules_enabled) do
-			load(host, module);
+			if not is_loaded(host, module) then
+				load(host, module);
+			end
 		end
 	end
 end

mercurial