Comparison

plugins/mod_pep.lua @ 5002:7a0b17118987

mod_pep: Allow configurable service discovery identity
author IRON <iron.udjin@gmail.com>
date Wed, 25 Jul 2012 18:49:13 +0300
parent 4394:676b0845eae4
child 5004:047f6621e709
comparison
equal deleted inserted replaced
5000:58c9519dc461 5002:7a0b17118987
30 data = state.data or {}; 30 data = state.data or {};
31 recipients = state.recipients or {}; 31 recipients = state.recipients or {};
32 hash_map = state.hash_map or {}; 32 hash_map = state.hash_map or {};
33 end 33 end
34 34
35 module:add_identity("pubsub", "pep", "Prosody"); 35 module:add_identity("pubsub", "pep", "pep", module:get_option_string("name", "Prosody"));
36 module:add_feature("http://jabber.org/protocol/pubsub#publish"); 36 module:add_feature("http://jabber.org/protocol/pubsub#publish");
37 37
38 local function subscription_presence(user_bare, recipient) 38 local function subscription_presence(user_bare, recipient)
39 local recipient_bare = jid_bare(recipient); 39 local recipient_bare = jid_bare(recipient);
40 if (recipient_bare == user_bare) then return true end 40 if (recipient_bare == user_bare) then return true end