diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-10-21 01:02:26 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-10-21 01:02:26 +0500 |
commit | 22cd9aadf669884ae58feaf1974c5b03481c17dd (patch) | |
tree | 65cf87b4690028b8b6f898186808442b71150c77 | |
parent | ee5999b307558946f85dad56def4bd22b9a0b437 (diff) | |
download | prosody-22cd9aadf669884ae58feaf1974c5b03481c17dd.tar.gz prosody-22cd9aadf669884ae58feaf1974c5b03481c17dd.zip |
mod_lastactivity: Persist data across reloads.
-rw-r--r-- | plugins/mod_lastactivity.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/mod_lastactivity.lua b/plugins/mod_lastactivity.lua index acbfb87d..cb914fe3 100644 --- a/plugins/mod_lastactivity.lua +++ b/plugins/mod_lastactivity.lua @@ -42,3 +42,11 @@ module:hook("iq/bare/jabber:iq:last:query", function(event) return true; end end); + +module.save = function() + return {map = map}; +end +module.restore = function(data) + map = data.map or {}; +end + |