Changeset

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
parents 4912:8d0643281fe2
children 4914:2e9b16b2ae00
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 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