Mercurial > prosody-hg
comparison plugins/mod_pep.lua @ 9157:c517a219f2ac
mod_pep: Add comment explaining 'none' affiliation
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 08 Aug 2018 20:40:44 +0100 |
| parents | f06484110817 |
| children | 37e814a680ab |
comparison
equal
deleted
inserted
replaced
| 9156:f06484110817 | 9157:c517a219f2ac |
|---|---|
| 247 end; | 247 end; |
| 248 | 248 |
| 249 access_models = { | 249 access_models = { |
| 250 presence = function (jid) | 250 presence = function (jid) |
| 251 if subscription_presence(username, jid) then | 251 if subscription_presence(username, jid) then |
| 252 -- This is their affiliation level which determines | |
| 253 -- permissions, it is acceptable to be a subscriber | |
| 254 -- with no affiliation. | |
| 252 return "none"; | 255 return "none"; |
| 253 end | 256 end |
| 254 return "restricted"; | 257 return "restricted"; |
| 255 end; | 258 end; |
| 256 }; | 259 }; |
