From ccb4b3e4930cbcb860d80c4ed91e57cec36d2d30 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 9 Sep 2014 15:05:46 +0200 Subject: core.stanza_router, mod_s2s: Move handling of S2S features to mod_s2s from stanza_router --- core/stanza_router.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/stanza_router.lua') diff --git a/core/stanza_router.lua b/core/stanza_router.lua index dbbb299b..4f529129 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -46,7 +46,7 @@ local function handle_unhandled_stanza(host, origin, stanza) if origin.send then origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); end - elseif not((name == "features" or name == "error") and xmlns == "http://etherx.jabber.org/streams") then -- FIXME remove check once we handle S2S features + else log("warn", "Unhandled %s stream element or stanza: %s; xmlns=%s: %s", origin_type, name, xmlns, tostring(stanza)); -- we didn't handle it origin:close("unsupported-stanza-type"); end -- cgit v1.2.3