From 13db2a926bff3a8db904a940db68bcc2afd31405 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 12 Apr 2009 13:14:45 +0100 Subject: core.s2smanager: Don't initiate dialback if we don't have a connection yet --- core/s2smanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/s2smanager.lua b/core/s2smanager.lua index 5f04fed6..cf198cf0 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -77,7 +77,7 @@ function send_to_host(from_host, to_host, data) -- 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 -- cgit v1.2.3