diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-12-03 00:37:54 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-12-03 00:37:54 +0500 |
commit | 9ed0c32abd3adedb068c5474327400a222453534 (patch) | |
tree | 41a457258b178c682687d626e8e140ff99527a08 | |
parent | 77ea58af5a6fb743822319a1bdfd02efc39d5807 (diff) | |
download | prosody-9ed0c32abd3adedb068c5474327400a222453534.tar.gz prosody-9ed0c32abd3adedb068c5474327400a222453534.zip |
mod_disco: Don't add caps hash to stream features on unauthenticated connections.
-rw-r--r-- | plugins/mod_disco.lua | 4 |
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 |