Changeset

4912:8d0643281fe2

mod_admin_telnet: Code found and updated, which depended on pre-8c5b5ebaacb0 behaviour.
author Kim Alvefur <zash@zash.se>
date Fri, 25 May 2012 07:08:12 +0200
parents 4911:4c8575b09ff6
children 4913:02dbed57a355
files plugins/mod_admin_telnet.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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