# HG changeset patch # User Waqas Hussain # Date 1242432471 -18000 # Node ID 09a4cd461673d8dffcb67daad1ea5bbb297a58a7 # Parent 490ff24d0ac57e1fef4305e35c02aa8d33ceedb4 modulemanager: Don't close the stream on unhandled stream:features diff -r 490ff24d0ac5 -r 09a4cd461673 core/modulemanager.lua --- a/core/modulemanager.lua Sat May 16 03:58:05 2009 +0500 +++ b/core/modulemanager.lua Sat May 16 05:07:51 2009 +0500 @@ -231,7 +231,7 @@ 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