stanza_router: Allow non-jabber:client elements after auth, before bind.

Thu, 04 Mar 2010 02:20:17 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Thu, 04 Mar 2010 02:20:17 +0500
changeset 2875
2c538d4bde13
parent 2874
54c8b3952786
child 2876
fa84451e9b35

stanza_router: Allow non-jabber:client elements after auth, before bind.

core/stanza_router.lua file | annotate | diff | comparison | revisions
--- a/core/stanza_router.lua	Fri Nov 20 17:12:12 2009 +0100
+++ b/core/stanza_router.lua	Thu Mar 04 02:20:17 2010 +0500
@@ -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