From d28fa4c70b359a54223244ec5b98fa5965e0028a Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Mon, 29 Jun 2009 15:26:04 +0500 Subject: modulemanager: Don't close stream on stream:error with unsupported-stanza-type (fixes #102) --- core/modulemanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/modulemanager.lua') diff --git a/core/modulemanager.lua b/core/modulemanager.lua index 082dcbb8..5ea0a22e 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -257,7 +257,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 - elseif not(name == "features" and xmlns == "http://etherx.jabber.org/streams") then -- FIXME remove check once we handle S2S features + elseif not((name == "features" or name == "error") 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