From a8669479e6ee0cb9a1f742047f4f5011aad9d8a4 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 25 May 2012 07:08:12 +0200 Subject: mod_admin_telnet: Code found and updated, which depended on pre-8c5b5ebaacb0 behaviour. --- plugins/mod_admin_telnet.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua index f4fdb39e..22f667a8 100644 --- a/plugins/mod_admin_telnet.lua +++ b/plugins/mod_admin_telnet.lua @@ -279,7 +279,7 @@ local function get_hosts_set(hosts, module) elseif hosts == nil then local mm = require "modulemanager"; local hosts_set = set.new(array.collect(keys(prosody.hosts))) - / function (host) return prosody.hosts[host].type == "local" or module and mm.is_loaded(host, module); end; + / function (host) return (prosody.hosts[host].type == "local" or module and mm.is_loaded(host, module)) and host or nil; end; if module and mm.get_module("*", module) then hosts_set:add("*"); end -- cgit v1.2.3