aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pep.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-08-08 20:38:10 +0100
committerMatthew Wild <mwild1@gmail.com>2018-08-08 20:38:10 +0100
commit341f50a06bb78a5b4ae6c3ae32c926d8e4f707bc (patch)
tree65d7229eecf43fe4f08233a1f5b522b6bba59e30 /plugins/mod_pep.lua
parent6ef3f2a74de007f0244fea1cb43e263e175f3701 (diff)
downloadprosody-341f50a06bb78a5b4ae6c3ae32c926d8e4f707bc.tar.gz
prosody-341f50a06bb78a5b4ae6c3ae32c926d8e4f707bc.zip
mod_pep: Remove "subscriber" affiliation in favour of "none"
It ended up with identical capabilities to "none", and isn't a standard affiliation defined by XEP-0060 anyway.
Diffstat (limited to 'plugins/mod_pep.lua')
-rw-r--r--plugins/mod_pep.lua24
1 files changed, 1 insertions, 23 deletions
diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua
index 63cfe562..e416fe8b 100644
--- a/plugins/mod_pep.lua
+++ b/plugins/mod_pep.lua
@@ -176,28 +176,6 @@ function get_pep_service(username)
set_affiliation = false;
};
- subscriber = {
- create = false;
- publish = false;
- retract = false;
- get_nodes = true;
-
- subscribe = true;
- unsubscribe = true;
- get_subscription = true;
- get_subscriptions = true;
- get_items = true;
-
- subscribe_other = false;
- unsubscribe_other = false;
- get_subscription_other = false;
- get_subscriptions_other = false;
-
- be_subscribed = true;
- be_unsubscribed = true;
-
- set_affiliation = false;
- };
publisher = {
create = false;
publish = true;
@@ -271,7 +249,7 @@ function get_pep_service(username)
access_models = {
presence = function (jid)
if subscription_presence(username, jid) then
- return "subscriber";
+ return "none";
end
return "restricted";
end;