--- a/plugins/mod_pep.lua Sat Aug 04 03:04:00 2018 +0200
+++ b/plugins/mod_pep.lua Sat Aug 04 03:13:26 2018 +0200
@@ -240,11 +240,17 @@
get_affiliation = function (jid)
if jid_bare(jid) == user_bare then
return "owner";
- elseif subscription_presence(username, jid) then
- return "subscriber";
end
end;
+ access_models = {
+ presence = function (jid)
+ if subscription_presence(username, jid) then
+ return "subscriber";
+ end
+ end;
+ };
+
normalize_jid = jid_bare;
check_node_config = check_node_config;