From c7a61c42aeb880309b098641f403c746b416fe46 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 12 Feb 2010 12:47:23 +0000 Subject: hostmanager: Small optimisation in checking whether a host is enabled --- core/hostmanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/hostmanager.lua b/core/hostmanager.lua index 722526f7..f8d7400d 100644 --- a/core/hostmanager.lua +++ b/core/hostmanager.lua @@ -35,7 +35,7 @@ local function load_enabled_hosts(config) local activated_any_host; for host, host_config in pairs(defined_hosts) do - if host ~= "*" and (host_config.core.enabled == nil or host_config.core.enabled) and not host_config.core.component_module then + if host ~= "*" and host_config.core.enabled ~= false and not host_config.core.component_module then activated_any_host = true; activate(host, host_config); end -- cgit v1.2.3