# HG changeset patch # User Waqas Hussain # Date 1291318674 -18000 # Node ID d2c4856c7ed5a02623a6fd34c2442aacac761fb1 # Parent a7d88f58abbbc7bd3e4e85fc6e2a0a6153aed2d4 mod_disco: Don't add caps hash to stream features on unauthenticated connections. diff -r a7d88f58abbb -r d2c4856c7ed5 plugins/mod_disco.lua --- 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