Diff

plugins/mod_pep.lua @ 9154:fd50e9c8c417

mod_pep: Change default affiliation in the "presence" access model to "restricted" for non-contacts This lets us loosen the restrictions of the "none" affiliation, so that the "open" access model allows anyone basic access.
author Kim Alvefur <zash@zash.se>
date Wed, 08 Aug 2018 20:55:14 +0200
parent 9143:817f666d9037
child 9155:ccd91fa828c4
line wrap: on
line diff
--- a/plugins/mod_pep.lua	Wed Aug 08 09:29:32 2018 +0200
+++ b/plugins/mod_pep.lua	Wed Aug 08 20:55:14 2018 +0200
@@ -273,6 +273,7 @@
 				if subscription_presence(username, jid) then
 					return "subscriber";
 				end
+				return "restricted";
 			end;
 		};