From ad38cc8fbefecf882bb2c2abbee1f410760d02a6 Mon Sep 17 00:00:00 2001
From: Kim Alvefur <zash@zash.se>
Date: Sun, 25 Nov 2018 14:47:36 +0100
Subject: mod_csi_simple: Use the same event name when firing as when hooking
 (fixes #1245)

---
 plugins/mod_csi_simple.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'plugins')

diff --git a/plugins/mod_csi_simple.lua b/plugins/mod_csi_simple.lua
index c8151df5..f3df5734 100644
--- a/plugins/mod_csi_simple.lua
+++ b/plugins/mod_csi_simple.lua
@@ -81,7 +81,7 @@ module:hook("csi-client-inactive", function (event)
 		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
-- 
cgit v1.2.3