# HG changeset patch
# User Matthew Wild <mwild1@gmail.com>
# Date 1338116276 -3600
# Node ID 6cbc35cdefaf3da8ae792aaa4f8a324a509cfc40
# Parent  98a8db95de8c1af65375ce95294c36e7e5aefeb5
stanza_router: Also don't bounce <iq type='result'>

diff -r 98a8db95de8c -r 6cbc35cdefaf core/stanza_router.lua
--- 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