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
pull/27/head
Kim Alvefur 3 years ago
parent a68169b93e
commit f4c4829d0f
  1. 3
      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);

Loading…
Cancel
Save