Changeset

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
parents 4918:98a8db95de8c
children 4920:e27adbf4e743
files core/stanza_router.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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