aboutsummaryrefslogtreecommitdiffstats
path: root/core/stanza_router.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/stanza_router.lua')
-rw-r--r--core/stanza_router.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index 1793f547..6c117c25 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -182,7 +182,8 @@ function core_handle_stanza(origin, stanza)
end -- TODO handle other stanzas
else
log("warn", "Unhandled origin: %s", origin.type);
- origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); -- FIXME correct error?
+ -- s2s stanzas can get here
+ (origin.sends2s or origin.send)(st.error_reply(stanza, "cancel", "service-unavailable")); -- FIXME correct error?
end
end