stanza_router: Removed unnecessary xmlns check

Mon, 29 Jun 2009 13:15:46 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Mon, 29 Jun 2009 13:15:46 +0500
changeset 1445
810037988642
parent 1444
19598161ae22
child 1446
109ca9e7a6f3

stanza_router: Removed unnecessary xmlns check

core/stanza_router.lua file | annotate | diff | comparison | revisions
--- a/core/stanza_router.lua	Mon Jun 29 13:15:09 2009 +0500
+++ b/core/stanza_router.lua	Mon Jun 29 13:15:46 2009 +0500
@@ -151,7 +151,7 @@
 			return;
 		end
 		if not modules_handle_stanza(h.host, origin, stanza) then
-			if stanza.attr.xmlns == "jabber:client" and stanza.attr.type ~= "result" and stanza.attr.type ~= "error" then
+			if stanza.attr.type ~= "result" and stanza.attr.type ~= "error" then
 				origin.send(st.error_reply(stanza, "cancel", "service-unavailable"));
 			end
 		end

mercurial