Software /
code /
prosody
Comparison
core/stanza_router.lua @ 4919:6cbc35cdefaf
stanza_router: Also don't bounce <iq type='result'>
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 27 May 2012 11:57:56 +0100 |
parent | 4918:98a8db95de8c |
child | 5012:d59c842fe38e |
comparison
equal
deleted
inserted
replaced
4918:98a8db95de8c | 4919:6cbc35cdefaf |
---|---|
198 stanza.attr.xmlns = nil; | 198 stanza.attr.xmlns = nil; |
199 local routed = host_session.events.fire_event("route/remote", { origin = origin, stanza = stanza, from_host = from_host, to_host = host }); | 199 local routed = host_session.events.fire_event("route/remote", { origin = origin, stanza = stanza, from_host = from_host, to_host = host }); |
200 stanza.attr.xmlns = xmlns; -- reset | 200 stanza.attr.xmlns = xmlns; -- reset |
201 if not routed then | 201 if not routed then |
202 log("debug", "... no, just kidding."); | 202 log("debug", "... no, just kidding."); |
203 if stanza.attr.type == "error" then return end | 203 if stanza.attr.type == "error" or (stanza.name == "iq" and stanza.attr.type == "result") then return; end |
204 core_route_stanza(host_session, st.error_reply(stanza, "cancel", "not-allowed", "Communication with remote domains is not enabled")); | 204 core_route_stanza(host_session, st.error_reply(stanza, "cancel", "not-allowed", "Communication with remote domains is not enabled")); |
205 end | 205 end |
206 end | 206 end |
207 end | 207 end |
208 end | 208 end |