diff options
author | Kim Alvefur <zash@zash.se> | 2012-05-27 04:01:34 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-05-27 04:01:34 +0200 |
commit | e2e2a52e49163d266f968c0064ee7c25a87053ca (patch) | |
tree | 26617668e5df1bef97d0767122e5b730d7e1ef5d /core | |
parent | 3203fc696731bd046c6cabc00c166146dc8fe5ea (diff) | |
download | prosody-e2e2a52e49163d266f968c0064ee7c25a87053ca.tar.gz prosody-e2e2a52e49163d266f968c0064ee7c25a87053ca.zip |
stanza_router: Don't bounce type=error stanzas
Diffstat (limited to 'core')
-rw-r--r-- | core/stanza_router.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua index 6e8ac6b3..043eb458 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -199,6 +199,8 @@ function core_route_stanza(origin, stanza) local routed = host_session.events.fire_event("route/remote", { origin = origin, stanza = stanza, from_host = from_host, to_host = host }); stanza.attr.xmlns = xmlns; -- reset if not routed then + log("debug", "... no, just kidding."); + if stanza.attr.type == "error" then return end core_route_stanza(host_session, st.error_reply(stanza, "cancel", "not-allowed", "Communication with remote domains is not enabled")); end end |