From b7b4c7b62618778466e3f81ce2f57d1b644ce47a Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Fri, 3 Dec 2010 00:37:54 +0500 Subject: [PATCH] mod_disco: Don't add caps hash to stream features on unauthenticated connections. --- plugins/mod_disco.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.30.2