core.stanza_router, mod_s2s: Move handling of S2S features to mod_s2s from stanza_router
[prosody.git] / core / stanza_router.lua
index dbbb299b1d0752b21df390ebaca5df14d1aa85ae..4f529129d91ce121f261f696d554db17e2004acc 100644 (file)
@@ -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