Remove warning of already-loaded modules at startup

Sun, 04 Jan 2009 02:55:59 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 04 Jan 2009 02:55:59 +0000
changeset 672
7db1044d2fab
parent 671
c7519f0c9a2c
child 675
cc82394fea22

Remove warning of already-loaded modules at startup

core/modulemanager.lua file | annotate | diff | comparison | revisions
--- 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