Comparison

plugins/mod_pep.lua @ 2045:3b7473a3fa44

PEP: Better reload support.
author Waqas Hussain <waqas20@gmail.com>
date Thu, 22 Oct 2009 02:26:27 +0500
parent 2044:11efc4aecd55
child 2326:814eaba0c777
comparison
equal deleted inserted replaced
2044:11efc4aecd55 2045:3b7473a3fa44
22 22
23 local NULL = {}; 23 local NULL = {};
24 local data = {}; 24 local data = {};
25 local recipients = {}; 25 local recipients = {};
26 local hash_map = {}; 26 local hash_map = {};
27
28 module.save = function()
29 return { data = data, recipients = recipients, hash_map = hash_map };
30 end
31 module.restore = function(state)
32 data = state.data or {};
33 recipients = state.recipients or {};
34 hash_map = state.hash_map or {};
35 end
27 36
28 module:add_identity("pubsub", "pep", "Prosody"); 37 module:add_identity("pubsub", "pep", "Prosody");
29 module:add_feature("http://jabber.org/protocol/pubsub#publish"); 38 module:add_feature("http://jabber.org/protocol/pubsub#publish");
30 39
31 local function publish(session, node, item) 40 local function publish(session, node, item)