From f215d57872b12301f6c8796cdbd4a3aa694e1bd5 Mon Sep 17 00:00:00 2001
From: Matthew Wild <mwild1@gmail.com>
Date: Sun, 27 May 2012 11:57:56 +0100
Subject: stanza_router: Also don't bounce <iq type='result'>

---
 core/stanza_router.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index 043eb458..f01c0fee 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -200,7 +200,7 @@ function core_route_stanza(origin, stanza)
 			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
-- 
cgit v1.2.3