core.s2smanager: Don't initiate dialback if we don't have a connection yet

Sun, 12 Apr 2009 13:14:45 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 12 Apr 2009 13:14:45 +0100
changeset 995
a007d85b4045
parent 994
8fd4efc3ed96
child 996
6fb96dffb2c1

core.s2smanager: Don't initiate dialback if we don't have a connection yet

core/s2smanager.lua file | annotate | diff | comparison | revisions
--- 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