Mercurial > prosody-hg
comparison plugins/mod_pep.lua @ 9160:e13a1a0b0107
mod_pep, util.pubsub: Rename restricted->outcast, none->member and add new 'none' affiliation to better match XEP-0060
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 08 Aug 2018 23:20:07 +0100 |
| parents | 37e814a680ab |
| children | 82fad995a149 |
comparison
equal
deleted
inserted
replaced
| 9159:a0fd7064f4ac | 9160:e13a1a0b0107 |
|---|---|
| 169 end; | 169 end; |
| 170 | 170 |
| 171 access_models = { | 171 access_models = { |
| 172 presence = function (jid) | 172 presence = function (jid) |
| 173 if subscription_presence(username, jid) then | 173 if subscription_presence(username, jid) then |
| 174 -- This is their affiliation level which determines | 174 return "member"; |
| 175 -- permissions, it is acceptable to be a subscriber | 175 end |
| 176 -- with no affiliation. | 176 return "outcast"; |
| 177 return "none"; | |
| 178 end | |
| 179 return "restricted"; | |
| 180 end; | 177 end; |
| 181 }; | 178 }; |
| 182 | 179 |
| 183 normalize_jid = jid_bare; | 180 normalize_jid = jid_bare; |
| 184 | 181 |
