Remove warning of already-loaded modules at startup
authorMatthew Wild <mwild1@gmail.com>
Sun, 4 Jan 2009 02:55:59 +0000 (02:55 +0000)
committerMatthew Wild <mwild1@gmail.com>
Sun, 4 Jan 2009 02:55:59 +0000 (02:55 +0000)
core/modulemanager.lua

index 354d881005aba03f083cc53dd60bc17d548a24d3..7ead4db034420030f161609c278d9ad6e1d74681 100644 (file)
@@ -79,7 +79,9 @@ function load_modules_for_host(host)
        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