From 61f6ce2bbc539440e147514b14e7e05ae9fd170f Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 20 Sep 2017 14:42:21 +0100 Subject: hostmanager: Add support for 'disco_hidden' option to hide hosts from disco#items (thanks Ge0rG) --- 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 53c1cd4e..643724c2 100644 --- a/core/hostmanager.lua +++ b/core/hostmanager.lua @@ -100,7 +100,7 @@ function activate(host, host_config) host_session.type = "component"; end hosts[host] = host_session; - if not host:match("[@/]") then + if not host_config.disco_hidden and not host:match("[@/]") then disco_items:set(host:match("%.(.*)") or "*", host, host_config.name or true); end for option_name in pairs(host_config) do -- cgit v1.2.3