aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_csi_simple.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-11-27 19:34:21 +0100
committerKim Alvefur <zash@zash.se>2018-11-27 19:34:21 +0100
commita24712e84549f512be9339976cf2e5583292703e (patch)
tree643410f6ef6d623a8c1eb87e656d3ed2ac5a4d0d /plugins/mod_csi_simple.lua
parent64b9b5a758874d074778dc913a2274f0ff410391 (diff)
downloadprosody-a24712e84549f512be9339976cf2e5583292703e.tar.gz
prosody-a24712e84549f512be9339976cf2e5583292703e.zip
mod_csi: Set session.state to simplify CSI modules
Moved here from mod_csi_simple
Diffstat (limited to 'plugins/mod_csi_simple.lua')
-rw-r--r--plugins/mod_csi_simple.lua2
1 files changed, 0 insertions, 2 deletions
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