Software /
code /
prosody
Diff
core/s2smanager.lua @ 995:a007d85b4045
core.s2smanager: Don't initiate dialback if we don't have a connection yet
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 12 Apr 2009 13:14:45 +0100 |
parent | 977:6f0bdf9e4dfb |
child | 1006:9166d7a8c3c0 |
line wrap: on
line diff
--- a/core/s2smanager.lua Sun Apr 12 03:06:22 2009 +0100 +++ b/core/s2smanager.lua Sun Apr 12 13:14:45 2009 +0100 @@ -77,7 +77,7 @@ -- We have a connection to this host already 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 (host.log or log)("debug", "trying to send over unauthed s2sout to "..to_host); - if not host.notopen and not host.dialback_key then + if not host.notopen and not host.dialback_key and host.sends2s then host.log("debug", "dialback had not been initiated"); initiate_dialback(host); end