mod_pep: Remove "subscriber" affiliation in favour of "none"
authorMatthew Wild <mwild1@gmail.com>
Wed, 08 Aug 2018 20:38:10 +0100
changeset 9159 f06484110817
parent 9158 ccd91fa828c4
child 9160 c517a219f2ac
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.
plugins/mod_pep.lua
--- a/plugins/mod_pep.lua	Wed Aug 08 21:03:37 2018 +0200
+++ b/plugins/mod_pep.lua	Wed Aug 08 20:38:10 2018 +0100
@@ -176,28 +176,6 @@
 
 				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 @@
 		access_models = {
 			presence = function (jid)
 				if subscription_presence(username, jid) then
-					return "subscriber";
+					return "none";
 				end
 				return "restricted";
 			end;