aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_telnet.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-05-25 07:08:12 +0200
committerKim Alvefur <zash@zash.se>2012-05-25 07:08:12 +0200
commitecb7c826b5581ae6971e2b0df8d759edd4273aec (patch)
treee2d198257d29cf033963bb98dccebb7379cfc98a /plugins/mod_admin_telnet.lua
parent1e99d3bcd00efc6895e34161d7329cebbdf13366 (diff)
downloadprosody-ecb7c826b5581ae6971e2b0df8d759edd4273aec.tar.gz
prosody-ecb7c826b5581ae6971e2b0df8d759edd4273aec.zip
mod_admin_telnet: Code found and updated, which depended on pre-8c5b5ebaacb0 behaviour.
Diffstat (limited to 'plugins/mod_admin_telnet.lua')
-rw-r--r--plugins/mod_admin_telnet.lua2
1 files changed, 1 insertions, 1 deletions
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