aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-10-21 01:02:26 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-10-21 01:02:26 +0500
commit22cd9aadf669884ae58feaf1974c5b03481c17dd (patch)
tree65cf87b4690028b8b6f898186808442b71150c77 /plugins
parentee5999b307558946f85dad56def4bd22b9a0b437 (diff)
downloadprosody-22cd9aadf669884ae58feaf1974c5b03481c17dd.tar.gz
prosody-22cd9aadf669884ae58feaf1974c5b03481c17dd.zip
mod_lastactivity: Persist data across reloads.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_lastactivity.lua8
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
+