Software /
code /
prosody
Diff
core/stanza_router.lua @ 358:ffb1a720f5ae
Don't error reply to stanzas direct over the s2s stream they came from
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 20 Nov 2008 02:05:26 +0000 |
parent | 340:a31715bf08eb |
child | 360:e918c979ad1a |
line wrap: on
line diff
--- a/core/stanza_router.lua Thu Nov 20 01:33:25 2008 +0000 +++ b/core/stanza_router.lua Thu Nov 20 02:05:26 2008 +0000 @@ -191,7 +191,7 @@ 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