aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-02-12 12:47:23 +0000
committerMatthew Wild <mwild1@gmail.com>2010-02-12 12:47:23 +0000
commitc7a61c42aeb880309b098641f403c746b416fe46 (patch)
treef2c8ba6f5161e8e1b36d4ff4ba62a05d0bcf1e3a
parent6014843e31c1af646ca3607f3b7594255d4e37ce (diff)
downloadprosody-c7a61c42aeb880309b098641f403c746b416fe46.tar.gz
prosody-c7a61c42aeb880309b098641f403c746b416fe46.zip
hostmanager: Small optimisation in checking whether a host is enabled
-rw-r--r--core/hostmanager.lua2
1 files changed, 1 insertions, 1 deletions
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