From 039df2c7e32288235b00224098994aea24b3787c Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 4 Feb 2009 18:53:23 +0000 Subject: Fix for never checking if the first module for a host is already loaded (affects global modules) --- core/modulemanager.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/modulemanager.lua b/core/modulemanager.lua index b7158e31..12cf9ce8 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -90,7 +90,9 @@ function load(host, module_name, config) if not modulemap[host] then modulemap[host] = {}; - elseif modulemap[host][module_name] then + end + + if modulemap[host][module_name] then log("warn", "%s is already loaded for %s, so not loading again", module_name, host); return nil, "module-already-loaded"; elseif modulemap["*"][module_name] then -- cgit v1.2.3