Diff

plugins/mod_lastactivity.lua @ 2026:97b17187b29d

mod_lastactivity: Persist data across reloads.
author Waqas Hussain <waqas20@gmail.com>
date Wed, 21 Oct 2009 01:02:26 +0500
parent 2025:dab1693f8a08
child 2029:d2363643a5c0
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
+