core/stanza_router.lua
changeset 4919 6cbc35cdefaf
parent 4918 98a8db95de8c
child 5012 d59c842fe38e
--- 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