Software /
code /
prosody
Changeset
3818:1dc56141ffda
mod_disco: Don't add caps hash to stream features on unauthenticated connections.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 03 Dec 2010 00:37:54 +0500 |
parents | 3817:459c136305c3 |
children | 3819:646aede54fc7 |
files | plugins/mod_disco.lua |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_disco.lua Fri Dec 03 00:29:44 2010 +0500 +++ b/plugins/mod_disco.lua Fri Dec 03 00:37:54 2010 +0500 @@ -115,7 +115,9 @@ -- 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