Software /
code /
prosody
Diff
core/stanza_router.lua @ 2917:2a6552b22f01
stanza_router: Allow non-jabber:client elements after auth, before bind. [originally 2c538d4bde13 in 0.6]
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 22 Mar 2010 15:04:22 +0000 |
parent | 2685:f9bc95aadc26 |
child | 2918:79ca9f686aaf |
line wrap: on
line diff
--- a/core/stanza_router.lua Mon Mar 22 14:58:25 2010 +0000 +++ b/core/stanza_router.lua Mon Mar 22 15:04:22 2010 +0000 @@ -36,7 +36,7 @@ end end - if origin.type == "c2s" then + if origin.type == "c2s" and stanza.attr.xmlns == "jabber:client" then if not origin.full_jid and not(stanza.name == "iq" and stanza.attr.type == "set" and stanza.tags[1] and stanza.tags[1].name == "bind" and stanza.tags[1].attr.xmlns == "urn:ietf:params:xml:ns:xmpp-bind") then