Software /
code /
prosody
Diff
plugins/mod_csi_simple.lua @ 9644:e31547ab1ca2 0.11
mod_csi_simple: Use the same event name when firing as when hooking (fixes #1245)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 25 Nov 2018 14:47:36 +0100 |
parent | 9632:fdefc43bffff |
child | 9648:dfebf6cac027 |
line wrap: on
line diff
--- a/plugins/mod_csi_simple.lua Sun Nov 25 13:04:37 2018 +0100 +++ b/plugins/mod_csi_simple.lua Sun Nov 25 14:47:36 2018 +0100 @@ -81,7 +81,7 @@ pump:pause(); session.pump = pump; function session.send(stanza) - if module:fire_event("csi-stanza-is-important", { stanza = stanza, session = session }) then + if module:fire_event("csi-is-stanza-important", { stanza = stanza, session = session }) then pump:flush(); send(stanza); else