Diff

plugins/mod_admin_telnet.lua @ 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
parent 4807:2999f0fd1347
child 4913:02dbed57a355
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