From c3b04f5f0937b2c81e5e6ec4b5b7b733fd0ff46f Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sat, 16 May 2009 05:07:51 +0500 Subject: modulemanager: Don't close the stream on unhandled stream:features --- core/modulemanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modulemanager.lua b/core/modulemanager.lua index e0d5ce9b..ea2aeec6 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -231,7 +231,7 @@ function handle_stanza(host, origin, stanza) if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); end - else + elseif not(name == "features" and xmlns == "http://etherx.jabber.org/streams") then -- FIXME remove check once we handle S2S features origin:close("unsupported-stanza-type"); end end -- cgit v1.2.3