# HG changeset patch # User Matthew Wild # Date 1239538485 -3600 # Node ID a007d85b4045db7a2b4432e234cfbdf909168fba # Parent 8fd4efc3ed968726a768120c0156b490c21fb4d8 core.s2smanager: Don't initiate dialback if we don't have a connection yet diff -r 8fd4efc3ed96 -r a007d85b4045 core/s2smanager.lua --- 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