Diff

core/xmlhandlers.lua @ 20:6885fd2cf51f

Remove some debugging messages Connection now closed on error Removed version='1.0' to keep it working with non-SASL
author Matthew Wild <mwild1@gmail.com>
date Tue, 26 Aug 2008 16:57:00 +0100
parent 7:dcc5ac721c20
child 31:aaccbf07849b
line wrap: on
line diff
--- a/core/xmlhandlers.lua	Tue Aug 26 13:15:06 2008 +0100
+++ b/core/xmlhandlers.lua	Tue Aug 26 16:57:00 2008 +0100
@@ -42,7 +42,7 @@
 			                        session.streamid = m_random(1000000, 99999999);
 			                        print(session, session.host, "Client opened stream");
 			                        send("<?xml version='1.0'?>");
-			                        send(format("<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='%s' from='%s' version='1.0'>", session.streamid, session.host));
+			                        send(format("<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='%s' from='%s'>", session.streamid, session.host));
 			                        --send("<stream:features>");
 			                        --send("<mechanism>PLAIN</mechanism>");
         			                --send [[<register xmlns="http://jabber.org/features/iq-register"/> ]]