diff options
author | Kim Alvefur <zash@zash.se> | 2023-04-16 12:47:55 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-04-16 12:47:55 +0200 |
commit | f4c4829d0f41c19199691a0d7c7110ae82bc4d81 (patch) | |
tree | bb4648302f4f92da7cf80a983281671b0ffdac70 | |
parent | a68169b93ef7aa132665f507b143747d1a753857 (diff) | |
download | prosody-f4c4829d0f41c19199691a0d7c7110ae82bc4d81.tar.gz prosody-f4c4829d0f41c19199691a0d7c7110ae82bc4d81.zip |
mod_csi: Always advertise feature
Was previously supposed to be conditionally advertised based on
availability of a module handling the actual optimizations, which was
removed in be9ac41f1619
-rw-r--r-- | plugins/mod_csi.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mod_csi.lua b/plugins/mod_csi.lua index 3c1a3720..82efd831 100644 --- a/plugins/mod_csi.lua +++ b/plugins/mod_csi.lua @@ -4,9 +4,8 @@ local csi_feature = st.stanza("csi", { xmlns = xmlns_csi }); local change = module:metric("counter", "changes", "events", "CSI state changes", {"csi_state"}); -local csi_handler_available = nil; module:hook("stream-features", function (event) - if event.origin.username and csi_handler_available then + if event.origin.username then event.features:add_child(csi_feature); end end); |