diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-11-20 02:05:26 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-11-20 02:05:26 +0000 |
commit | c1acb03d538c60d99bab38f404b50c2c1234acfc (patch) | |
tree | 90888c2e6f5103a62b6d3b40f3c7659a345a452b | |
parent | 5c7ec634b1765f8edcc8b59aff2b2b899180dc65 (diff) | |
download | prosody-c1acb03d538c60d99bab38f404b50c2c1234acfc.tar.gz prosody-c1acb03d538c60d99bab38f404b50c2c1234acfc.zip |
Don't error reply to stanzas direct over the s2s stream they came from
-rw-r--r-- | core/stanza_router.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua index 46ece139..9a638896 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -191,7 +191,7 @@ function core_handle_stanza(origin, stanza) log("warn", "Unhandled origin: %s", origin.type); if (stanza.attr.xmlns == "jabber:client" or stanza.attr.xmlns == "jabber:server") and stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then -- s2s stanzas can get here - (origin.sends2s or origin.send)(st.error_reply(stanza, "cancel", "service-unavailable")); -- FIXME correct error? + origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); -- FIXME correct error? end end end |