projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fb00d1
)
stanza_router: Also don't bounce <iq type='result'>
author
Matthew Wild
<mwild1@gmail.com>
Sun, 27 May 2012 10:57:56 +0000
(11:57 +0100)
committer
Matthew Wild
<mwild1@gmail.com>
Sun, 27 May 2012 10:57:56 +0000
(11:57 +0100)
core/stanza_router.lua
patch
|
blob
|
history
diff --git
a/core/stanza_router.lua
b/core/stanza_router.lua
index 043eb45862221d9bb8e9bf11276d620a3f5aa14e..f01c0fee045073a6a4070011982809b42537b6e5 100644
(file)
--- 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