# HG changeset patch # User Kim Alvefur <zash@zash.se> # Date 1337922492 -7200 # Node ID 8d0643281fe2fc0e989f555cd1d407cea03abbd8 # Parent 4c8575b09ff6bb52238c6edd6b54afad8fe85e6b mod_admin_telnet: Code found and updated, which depended on pre-8c5b5ebaacb0 behaviour. diff -r 4c8575b09ff6 -r 8d0643281fe2 plugins/mod_admin_telnet.lua --- a/plugins/mod_admin_telnet.lua Fri May 25 03:39:45 2012 +0200 +++ b/plugins/mod_admin_telnet.lua Fri May 25 07:08:12 2012 +0200 @@ -279,7 +279,7 @@ 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