aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-12-03 00:37:54 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-12-03 00:37:54 +0500
commit8ed206d1d111517e59baa0054424bb633e2e5349 (patch)
tree874ab8e2aa621b796c912fdccaf4a382fab0311f
parent8101afcd522579a05ac9286353397a417e6165b9 (diff)
downloadprosody-8ed206d1d111517e59baa0054424bb633e2e5349.tar.gz
prosody-8ed206d1d111517e59baa0054424bb633e2e5349.zip
mod_disco: Don't add caps hash to stream features on unauthenticated connections.
-rw-r--r--plugins/mod_disco.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_disco.lua b/plugins/mod_disco.lua
index 9bef6295..907ca753 100644
--- a/plugins/mod_disco.lua
+++ b/plugins/mod_disco.lua
@@ -115,7 +115,9 @@ end);
-- Handle caps stream feature
module:hook("stream-features", function (event)
- event.features:add_child(get_server_caps_feature());
+ if event.origin.type == "c2s" then
+ event.features:add_child(get_server_caps_feature());
+ end
end);
-- Handle disco requests to user accounts