core/s2smanager.lua

changeset 995
a007d85b4045
parent 977
6f0bdf9e4dfb
child 1012
9166d7a8c3c0
--- 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

mercurial