# HG changeset patch
# User Matthew Wild <mwild1@gmail.com>
# Date 1254670797 -3600
# Node ID aed0d8a0cca80e0a4cf5428776fb89aa0afe001a
# Parent  e875833ae08e9fb8d60519328a0ec079daa2af65
s2smanager: Don't wait for stream:features from non-XMPP-1.0 hosts

diff -r e875833ae08e -r aed0d8a0cca8 core/s2smanager.lua
--- a/core/s2smanager.lua	Sun Oct 04 16:38:33 2009 +0100
+++ b/core/s2smanager.lua	Sun Oct 04 16:39:57 2009 +0100
@@ -384,10 +384,13 @@
 		end
 		session.send_buffer = nil;
 	
-		if not session.dialback_verifying then
-			initiate_dialback(session);
-		else
-			mark_connected(session);
+		-- If server is pre-1.0, don't wait for features, just do dialback
+		if session.version < 1.0 then
+			if not session.dialback_verifying then
+				initiate_dialback(session);
+			else
+				mark_connected(session);
+			end
 		end
 	end