aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-05-27 11:57:56 +0100
committerMatthew Wild <mwild1@gmail.com>2012-05-27 11:57:56 +0100
commitf215d57872b12301f6c8796cdbd4a3aa694e1bd5 (patch)
tree1e0947fb5c0621438bf363ba5f9992a77c81ecf0 /core
parente2e2a52e49163d266f968c0064ee7c25a87053ca (diff)
downloadprosody-f215d57872b12301f6c8796cdbd4a3aa694e1bd5.tar.gz
prosody-f215d57872b12301f6c8796cdbd4a3aa694e1bd5.zip
stanza_router: Also don't bounce <iq type='result'>
Diffstat (limited to 'core')
-rw-r--r--core/stanza_router.lua2
1 files changed, 1 insertions, 1 deletions
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