Diff

plugins/mod_admin_telnet.lua @ 4913:02dbed57a355

mod_admin_telnet: More code found and updated, which depended on pre-8c5b5ebaacb0 behaviour.
author Kim Alvefur <zash@zash.se>
date Fri, 25 May 2012 12:50:58 +0200
parent 4912:8d0643281fe2
child 4971:bfc52b9137c8
child 4973:3f7248ac1a3b
child 4978:0b9e86302de4
child 5021:85b2689dbcfe
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua	Fri May 25 07:08:12 2012 +0200
+++ b/plugins/mod_admin_telnet.lua	Fri May 25 12:50:58 2012 +0200
@@ -631,7 +631,7 @@
 	local ser = require "util.serialization".serialize;
 	local print = self.session.print;
 	local domain_sessions = set.new(array.collect(keys(incoming_s2s)))
-		/function(session) return session.from_host == domain; end;
+		/function(session) return session.from_host == domain and session or nil; end;
 	for local_host in values(prosody.hosts) do
 		local s2sout = local_host.s2sout;
 		if s2sout and s2sout[domain] then