Software /
code /
prosody
Changeset
13075:82980f6890cd
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
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 16 Apr 2023 12:47:55 +0200 |
parents | 13074:794a5ad5495e |
children | 13076:f4e33d17eaa8 |
files | plugins/mod_csi.lua |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_csi.lua Wed Apr 12 11:43:32 2023 +0200 +++ b/plugins/mod_csi.lua Sun Apr 16 12:47:55 2023 +0200 @@ -4,9 +4,8 @@ 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);