Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
357:17bcecb06420 | 358:ffb1a720f5ae |
---|---|
189 end -- TODO handle other stanzas | 189 end -- TODO handle other stanzas |
190 else | 190 else |
191 log("warn", "Unhandled origin: %s", origin.type); | 191 log("warn", "Unhandled origin: %s", origin.type); |
192 if (stanza.attr.xmlns == "jabber:client" or stanza.attr.xmlns == "jabber:server") and stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then | 192 if (stanza.attr.xmlns == "jabber:client" or stanza.attr.xmlns == "jabber:server") and stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then |
193 -- s2s stanzas can get here | 193 -- s2s stanzas can get here |
194 (origin.sends2s or origin.send)(st.error_reply(stanza, "cancel", "service-unavailable")); -- FIXME correct error? | 194 origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); -- FIXME correct error? |
195 end | 195 end |
196 end | 196 end |
197 end | 197 end |
198 | 198 |
199 function core_route_stanza(origin, stanza) | 199 function core_route_stanza(origin, stanza) |