mod_csi_simple: Use the same event name when firing as when hooking (fixes #1245) 0.11
authorKim Alvefur <zash@zash.se>
Sun, 25 Nov 2018 14:47:36 +0100
branch0.11
changeset 9648 e31547ab1ca2
parent 9644 28d4b9d5a432
child 9649 cc642c9c5ad5
mod_csi_simple: Use the same event name when firing as when hooking (fixes #1245)
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