Software /
code /
prosody
Changeset
13070:be9ac41f1619
mod_csi: Remove module status, doesn't work because of mod_smacks
This was meant to warn in case you had only mod_csi without a logic
handling module like mod_csi_simple by checking if anything hooked this
event, however mod_smacks also hooks this event and so this isn't really
a useful way of detecting this condition.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 10 Apr 2023 13:50:09 +0200 |
parents | 13069:45caa4e43775 |
children | 13071:b5a419ac0f84 |
files | plugins/mod_csi.lua |
diffstat | 1 files changed, 0 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_csi.lua Mon Apr 10 11:50:27 2023 +0200 +++ b/plugins/mod_csi.lua Mon Apr 10 13:50:09 2023 +0200 @@ -24,15 +24,3 @@ module:hook("stanza/"..xmlns_csi..":active", refire_event("csi-client-active")); module:hook("stanza/"..xmlns_csi..":inactive", refire_event("csi-client-inactive")); - -function module.load() - if prosody.hosts[module.host].events._handlers["csi-client-active"] then - csi_handler_available = true; - module:set_status("core", "CSI handler module loaded"); - else - csi_handler_available = false; - module:set_status("warn", "No CSI handler module loaded"); - end -end -module:hook("module-loaded", module.load); -module:hook("module-unloaded", module.load);