# HG changeset patch # User Kim Alvefur # Date 1543153656 -3600 # Node ID e31547ab1ca202ddaabf9475931647debc484707 # Parent 28d4b9d5a432a66029b07bc2e12099f8802e9d92 mod_csi_simple: Use the same event name when firing as when hooking (fixes #1245) diff -r 28d4b9d5a432 -r e31547ab1ca2 plugins/mod_csi_simple.lua --- 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