Comparison

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
comparison
equal deleted inserted replaced
4912:8d0643281fe2 4913:02dbed57a355
629 629
630 function def_env.s2s:showcert(domain) 630 function def_env.s2s:showcert(domain)
631 local ser = require "util.serialization".serialize; 631 local ser = require "util.serialization".serialize;
632 local print = self.session.print; 632 local print = self.session.print;
633 local domain_sessions = set.new(array.collect(keys(incoming_s2s))) 633 local domain_sessions = set.new(array.collect(keys(incoming_s2s)))
634 /function(session) return session.from_host == domain; end; 634 /function(session) return session.from_host == domain and session or nil; end;
635 for local_host in values(prosody.hosts) do 635 for local_host in values(prosody.hosts) do
636 local s2sout = local_host.s2sout; 636 local s2sout = local_host.s2sout;
637 if s2sout and s2sout[domain] then 637 if s2sout and s2sout[domain] then
638 domain_sessions:add(s2sout[domain]); 638 domain_sessions:add(s2sout[domain]);
639 end 639 end