hostmanager: Small optimisation in checking whether a host is enabled

Fri, 12 Feb 2010 12:47:23 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 12 Feb 2010 12:47:23 +0000
changeset 2618
b8f6aa70d019
parent 2617
0888bb4e817d
child 2619
04158baefa34

hostmanager: Small optimisation in checking whether a host is enabled

core/hostmanager.lua file | annotate | diff | comparison | revisions
--- a/core/hostmanager.lua	Fri Feb 12 12:43:50 2010 +0000
+++ b/core/hostmanager.lua	Fri Feb 12 12:47:23 2010 +0000
@@ -35,7 +35,7 @@
 	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

mercurial