From a24712e84549f512be9339976cf2e5583292703e Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 27 Nov 2018 19:34:21 +0100 Subject: mod_csi: Set session.state to simplify CSI modules Moved here from mod_csi_simple --- plugins/mod_csi.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/mod_csi.lua') diff --git a/plugins/mod_csi.lua b/plugins/mod_csi.lua index 03f052b7..7f50dfd9 100644 --- a/plugins/mod_csi.lua +++ b/plugins/mod_csi.lua @@ -11,6 +11,7 @@ end); function refire_event(name) return function (event) if event.origin.username then + session.state = event.stanza.name; module:fire_event(name, event); return true; end -- cgit v1.2.3