aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pep.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-08-08 23:20:07 +0100
committerMatthew Wild <mwild1@gmail.com>2018-08-08 23:20:07 +0100
commit7df3613768b9d0a85ccf0589caafc2e2a632c21e (patch)
tree77c141846138013e742b4afdc2d6631a64a1b420 /plugins/mod_pep.lua
parent674da5cef01d41d923718d721d7a665008bf12e9 (diff)
downloadprosody-7df3613768b9d0a85ccf0589caafc2e2a632c21e.tar.gz
prosody-7df3613768b9d0a85ccf0589caafc2e2a632c21e.zip
mod_pep, util.pubsub: Rename restricted->outcast, none->member and add new 'none' affiliation to better match XEP-0060
Diffstat (limited to 'plugins/mod_pep.lua')
-rw-r--r--plugins/mod_pep.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua
index e43b67b1..4239ce66 100644
--- a/plugins/mod_pep.lua
+++ b/plugins/mod_pep.lua
@@ -171,12 +171,9 @@ function get_pep_service(username)
access_models = {
presence = function (jid)
if subscription_presence(username, jid) then
- -- This is their affiliation level which determines
- -- permissions, it is acceptable to be a subscriber
- -- with no affiliation.
- return "none";
+ return "member";
end
- return "restricted";
+ return "outcast";
end;
};