Software /
code /
prosody
Comparison
core/stanza_router.lua @ 257:762274c98040
I knew it ;) Fix sending error replies over s2s (though we shouldn't be error'ing on stream:features anyway)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 14 Nov 2008 02:33:20 +0000 |
parent | 250:9f66ede8deeb |
child | 262:8c73fb2ff4a2 |
comparison
equal
deleted
inserted
replaced
256:c14ddd0912a2 | 257:762274c98040 |
---|---|
180 log("warn", "Unhandled c2s stanza: %s", tostring(stanza)); | 180 log("warn", "Unhandled c2s stanza: %s", tostring(stanza)); |
181 origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); -- FIXME correct error? | 181 origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); -- FIXME correct error? |
182 end -- TODO handle other stanzas | 182 end -- TODO handle other stanzas |
183 else | 183 else |
184 log("warn", "Unhandled origin: %s", origin.type); | 184 log("warn", "Unhandled origin: %s", origin.type); |
185 origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); -- FIXME correct error? | 185 -- s2s stanzas can get here |
186 (origin.sends2s or origin.send)(st.error_reply(stanza, "cancel", "service-unavailable")); -- FIXME correct error? | |
186 end | 187 end |
187 end | 188 end |
188 | 189 |
189 function send_presence_of_available_resources(user, host, jid, recipient_session) | 190 function send_presence_of_available_resources(user, host, jid, recipient_session) |
190 local h = hosts[host]; | 191 local h = hosts[host]; |