Software /
code /
prosody
Diff
core/xmlhandlers.lua @ 7:dcc5ac721c20
- Remove some debugging code
- Don't allow stanzas to be sent before successful auth (needs further review)
- Make init_xmlhandlers local
- Fix indentation in main.lua
- Fix disconnect logic (it broke if client disconnected before auth, etc.)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 24 Aug 2008 22:48:27 +0100 |
parent | 1:b8787e859fd2 |
child | 20:6885fd2cf51f |
line wrap: on
line diff
--- a/core/xmlhandlers.lua Sun Aug 24 18:08:04 2008 +0100 +++ b/core/xmlhandlers.lua Sun Aug 24 22:48:27 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' >", session.streamid, session.host)); + 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("<stream:features>"); --send("<mechanism>PLAIN</mechanism>"); --send [[<register xmlns="http://jabber.org/features/iq-register"/> ]]