Software /
code /
prosody
Diff
plugins/mod_csi_simple.lua @ 9651:989cf872d5c0 0.11
mod_csi: Set session.state to simplify CSI modules
Moved here from mod_csi_simple
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 27 Nov 2018 19:34:21 +0100 |
parent | 9650:db6bcafd76c9 |
child | 9767:57ceffb13963 |
line wrap: on
line diff
--- a/plugins/mod_csi_simple.lua Tue Nov 27 19:15:33 2018 +0100 +++ b/plugins/mod_csi_simple.lua Tue Nov 27 19:34:21 2018 +0100 @@ -71,7 +71,6 @@ 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 @@ module:hook("csi-client-active", function (event) local session = event.origin; - session.state = "active"; if session.pump then session.pump:resume(); end