Changeset

2026:97b17187b29d

mod_lastactivity: Persist data across reloads.
author Waqas Hussain <waqas20@gmail.com>
date Wed, 21 Oct 2009 01:02:26 +0500
parents 2025:dab1693f8a08
children 2027:4cd673721e72 2028:4f33100195a0
files plugins/mod_lastactivity.lua
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_lastactivity.lua	Wed Oct 21 01:01:46 2009 +0500
+++ b/plugins/mod_lastactivity.lua	Wed Oct 21 01:02:26 2009 +0500
@@ -42,3 +42,11 @@
 		return true;
 	end
 end);
+
+module.save = function()
+	return {map = map};
+end
+module.restore = function(data)
+	map = data.map or {};
+end
+