diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-06-29 15:26:04 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-06-29 15:26:04 +0500 |
commit | d28fa4c70b359a54223244ec5b98fa5965e0028a (patch) | |
tree | 1b8c820757f370a6f6e6def2d53f5b27a4a4f2e4 /core/modulemanager.lua | |
parent | dbf5462378e9cdfbba714b5bcbe676d4f63fa135 (diff) | |
download | prosody-d28fa4c70b359a54223244ec5b98fa5965e0028a.tar.gz prosody-d28fa4c70b359a54223244ec5b98fa5965e0028a.zip |
modulemanager: Don't close stream on stream:error with unsupported-stanza-type (fixes #102)
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r-- | core/modulemanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |