Comparison

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
comparison
equal deleted inserted replaced
2025:dab1693f8a08 2026:97b17187b29d
40 origin.send(st.error_reply(stanza, 'auth', 'forbidden')); 40 origin.send(st.error_reply(stanza, 'auth', 'forbidden'));
41 end 41 end
42 return true; 42 return true;
43 end 43 end
44 end); 44 end);
45
46 module.save = function()
47 return {map = map};
48 end
49 module.restore = function(data)
50 map = data.map or {};
51 end
52