Changeset

2875:2c538d4bde13

stanza_router: Allow non-jabber:client elements after auth, before bind.
author Waqas Hussain <waqas20@gmail.com>
date Thu, 04 Mar 2010 02:20:17 +0500
parents 2874:54c8b3952786
children 2876:fa84451e9b35
files core/stanza_router.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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