mod_admin_telnet: Code found and updated, which depended on pre-8c5b5ebaacb0 behaviour.
authorKim Alvefur <zash@zash.se>
Fri, 25 May 2012 07:08:12 +0200
changeset 4912 8d0643281fe2
parent 4911 4c8575b09ff6
child 4913 02dbed57a355
mod_admin_telnet: Code found and updated, which depended on pre-8c5b5ebaacb0 behaviour.
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