Software /
code /
prosody
Comparison
plugins/mod_pep.lua @ 8329:83bab3c84671
mod_pep: Remove disco identity and feature from the host (changed in XEP-0163 version 1.2)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 17 Oct 2017 05:20:11 +0200 |
parent | 8125:5f0c642a41a1 |
child | 8330:8d5c2eef1654 |
comparison
equal
deleted
inserted
replaced
8328:29ef191c7bf9 | 8329:83bab3c84671 |
---|---|
33 module.restore = function(state) | 33 module.restore = function(state) |
34 data = state.data or {}; | 34 data = state.data or {}; |
35 recipients = state.recipients or {}; | 35 recipients = state.recipients or {}; |
36 hash_map = state.hash_map or {}; | 36 hash_map = state.hash_map or {}; |
37 end | 37 end |
38 | |
39 module:add_identity("pubsub", "pep", module:get_option_string("name", "Prosody")); | |
40 module:add_feature("http://jabber.org/protocol/pubsub#publish"); | |
41 | 38 |
42 local function subscription_presence(user_bare, recipient) | 39 local function subscription_presence(user_bare, recipient) |
43 local recipient_bare = jid_bare(recipient); | 40 local recipient_bare = jid_bare(recipient); |
44 if (recipient_bare == user_bare) then return true end | 41 if (recipient_bare == user_bare) then return true end |
45 local username, host = jid_split(user_bare); | 42 local username, host = jid_split(user_bare); |