Comparison

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
comparison
equal deleted inserted replaced
9153:26c5a4a14905 9154:fd50e9c8c417
271 access_models = { 271 access_models = {
272 presence = function (jid) 272 presence = function (jid)
273 if subscription_presence(username, jid) then 273 if subscription_presence(username, jid) then
274 return "subscriber"; 274 return "subscriber";
275 end 275 end
276 return "restricted";
276 end; 277 end;
277 }; 278 };
278 279
279 normalize_jid = jid_bare; 280 normalize_jid = jid_bare;
280 281