diff options
-rw-r--r-- | plugins/mod_csi.lua | 1 | ||||
-rw-r--r-- | plugins/mod_csi_simple.lua | 2 |
2 files changed, 1 insertions, 2 deletions
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 diff --git a/plugins/mod_csi_simple.lua b/plugins/mod_csi_simple.lua index f00279d3..1efff38f 100644 --- a/plugins/mod_csi_simple.lua +++ b/plugins/mod_csi_simple.lua @@ -71,7 +71,6 @@ end, -1); module:hook("csi-client-inactive", function (event) local session = event.origin; - session.state = "inactive"; if session.pump then session.pump:pause(); else @@ -99,7 +98,6 @@ end); module:hook("csi-client-active", function (event) local session = event.origin; - session.state = "active"; if session.pump then session.pump:resume(); end |