aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_disco.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-07-27 14:10:18 +0200
committerKim Alvefur <zash@zash.se>2017-07-27 14:10:18 +0200
commit46863c65b32369fc20ba920d46a5f4fd27293ad8 (patch)
treee34fedad1e4a3fdcefe46b2e4074b5fabf3ce54a /plugins/mod_disco.lua
parentb433940c1ea9200498017fdf529f395a2a92de1d (diff)
downloadprosody-46863c65b32369fc20ba920d46a5f4fd27293ad8.tar.gz
prosody-46863c65b32369fc20ba920d46a5f4fd27293ad8.zip
mod_disco: Advertise in stream-features after auth (probably what was meant in 200f1f6306a7) (fixes #957)
Diffstat (limited to 'plugins/mod_disco.lua')
-rw-r--r--plugins/mod_disco.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_disco.lua b/plugins/mod_disco.lua
index 10eb632d..cd07934f 100644
--- a/plugins/mod_disco.lua
+++ b/plugins/mod_disco.lua
@@ -148,7 +148,7 @@ end);
-- Handle caps stream feature
module:hook("stream-features", function (event)
- if event.origin.type == "c2s" or event.origin.type == "c2s_unauthed" then
+ if event.origin.type == "c2s" or event.origin.type == "c2s_unbound" then
event.features:add_child(get_server_caps_feature());
end
end);