stanza_router: Allow non-jabber:client elements after auth, before bind. [originally 2c538d4bde13 in 0.6]

Mon, 22 Mar 2010 15:04:22 +0000

author
Waqas Hussain <waqas20@gmail.com>
date
Mon, 22 Mar 2010 15:04:22 +0000
changeset 2917
2a6552b22f01
parent 2915
f47bd0f7e2e6
child 2918
79ca9f686aaf

stanza_router: Allow non-jabber:client elements after auth, before bind. [originally 2c538d4bde13 in 0.6]

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

mercurial