From 22cd9aadf669884ae58feaf1974c5b03481c17dd Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Wed, 21 Oct 2009 01:02:26 +0500 Subject: mod_lastactivity: Persist data across reloads. --- plugins/mod_lastactivity.lua | 8 ++++++++ 1 file changed, 8 insertions(+) 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 + -- cgit v1.2.3