Comparison

plugins/mod_pep.lua @ 5004:047f6621e709

mod_pep: Allow configurable service discovery identity (Fix)
author IRON <iron.udjin@gmail.com>
date Wed, 25 Jul 2012 19:04:42 +0300
parent 5002:7a0b17118987
child 5013:ab693eea0869
comparison
equal deleted inserted replaced
5003:a70eeed3f502 5004:047f6621e709
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", "pep", module:get_option_string("name", "Prosody")); 35 module:add_identity("pubsub", "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