stanza_router: Also don't bounce <iq type='result'>
authorMatthew Wild <mwild1@gmail.com>
Sun, 27 May 2012 10:57:56 +0000 (11:57 +0100)
committerMatthew Wild <mwild1@gmail.com>
Sun, 27 May 2012 10:57:56 +0000 (11:57 +0100)
core/stanza_router.lua

index 043eb45862221d9bb8e9bf11276d620a3f5aa14e..f01c0fee045073a6a4070011982809b42537b6e5 100644 (file)
@@ -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