core/s2smanager.lua

changeset 995
a007d85b4045
parent 977
6f0bdf9e4dfb
child 1012
9166d7a8c3c0
equal deleted inserted replaced
994:8fd4efc3ed96 995:a007d85b4045
75 local host = hosts[from_host].s2sout[to_host]; 75 local host = hosts[from_host].s2sout[to_host];
76 if host then 76 if host then
77 -- We have a connection to this host already 77 -- We have a connection to this host already
78 if host.type == "s2sout_unauthed" and data.name ~= "db:verify" and ((not data.xmlns) or data.xmlns == "jabber:client" or data.xmlns == "jabber:server") then 78 if host.type == "s2sout_unauthed" and data.name ~= "db:verify" and ((not data.xmlns) or data.xmlns == "jabber:client" or data.xmlns == "jabber:server") then
79 (host.log or log)("debug", "trying to send over unauthed s2sout to "..to_host); 79 (host.log or log)("debug", "trying to send over unauthed s2sout to "..to_host);
80 if not host.notopen and not host.dialback_key then 80 if not host.notopen and not host.dialback_key and host.sends2s then
81 host.log("debug", "dialback had not been initiated"); 81 host.log("debug", "dialback had not been initiated");
82 initiate_dialback(host); 82 initiate_dialback(host);
83 end 83 end
84 84
85 -- Queue stanza until we are able to send it 85 -- Queue stanza until we are able to send it

mercurial