Diff

core/stanza_router.lua @ 4919:6cbc35cdefaf

stanza_router: Also don't bounce <iq type='result'>
author Matthew Wild <mwild1@gmail.com>
date Sun, 27 May 2012 11:57:56 +0100
parent 4918:98a8db95de8c
child 5012:d59c842fe38e
line wrap: on
line diff
--- a/core/stanza_router.lua	Sun May 27 04:01:34 2012 +0200
+++ b/core/stanza_router.lua	Sun May 27 11:57:56 2012 +0100
@@ -200,7 +200,7 @@
 			stanza.attr.xmlns = xmlns; -- reset
 			if not routed then
 				log("debug", "... no, just kidding.");
-				if stanza.attr.type == "error" then return end
+				if stanza.attr.type == "error" or (stanza.name == "iq" and stanza.attr.type == "result") then return; end
 				core_route_stanza(host_session, st.error_reply(stanza, "cancel", "not-allowed", "Communication with remote domains is not enabled"));
 			end
 		end