aboutsummaryrefslogtreecommitdiffstats
path: root/core/modulemanager.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-05-16 05:07:51 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-05-16 05:07:51 +0500
commitc3b04f5f0937b2c81e5e6ec4b5b7b733fd0ff46f (patch)
treeb77f13a7e57c57531e4fc3f79a8eefa7f35f21d0 /core/modulemanager.lua
parent770011c63a48cc4f06250d3eed979a3d39b50012 (diff)
downloadprosody-c3b04f5f0937b2c81e5e6ec4b5b7b733fd0ff46f.tar.gz
prosody-c3b04f5f0937b2c81e5e6ec4b5b7b733fd0ff46f.zip
modulemanager: Don't close the stream on unhandled stream:features
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r--core/modulemanager.lua2
1 files changed, 1 insertions, 1 deletions
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