From f4c4829d0f41c19199691a0d7c7110ae82bc4d81 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 16 Apr 2023 12:47:55 +0200 Subject: 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 --- plugins/mod_csi.lua | 3 +-- 1 file changed, 1 insertion(+), 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); -- cgit v1.2.3