aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commita8669479e6ee0cb9a1f742047f4f5011aad9d8a4 (patch)
treee2d198257d29cf033963bb98dccebb7379cfc98a /plugins
parentee0b51c86f3f2bc28705cbb54c5d350b87b08c8c (diff)
downloadprosody-a8669479e6ee0cb9a1f742047f4f5011aad9d8a4.tar.gz
prosody-a8669479e6ee0cb9a1f742047f4f5011aad9d8a4.zip
mod_admin_telnet: Code found and updated, which depended on pre-8c5b5ebaacb0 behaviour.
Diffstat (limited to 'plugins')
-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