Mercurial > prosody-hg
comparison 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 |
| parents | 6f0bdf9e4dfb |
| children | 9166d7a8c3c0 |
comparison
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 |
