Software /
code /
prosody
Comparison
plugins/mod_pep.lua @ 9156:f06484110817
mod_pep: Remove "subscriber" affiliation in favour of "none"
It ended up with identical capabilities to "none", and isn't a standard
affiliation defined by XEP-0060 anyway.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 08 Aug 2018 20:38:10 +0100 |
parent | 9155:ccd91fa828c4 |
child | 9157:c517a219f2ac |
comparison
equal
deleted
inserted
replaced
9155:ccd91fa828c4 | 9156:f06484110817 |
---|---|
174 be_subscribed = true; | 174 be_subscribed = true; |
175 be_unsubscribed = true; | 175 be_unsubscribed = true; |
176 | 176 |
177 set_affiliation = false; | 177 set_affiliation = false; |
178 }; | 178 }; |
179 subscriber = { | |
180 create = false; | |
181 publish = false; | |
182 retract = false; | |
183 get_nodes = true; | |
184 | |
185 subscribe = true; | |
186 unsubscribe = true; | |
187 get_subscription = true; | |
188 get_subscriptions = true; | |
189 get_items = true; | |
190 | |
191 subscribe_other = false; | |
192 unsubscribe_other = false; | |
193 get_subscription_other = false; | |
194 get_subscriptions_other = false; | |
195 | |
196 be_subscribed = true; | |
197 be_unsubscribed = true; | |
198 | |
199 set_affiliation = false; | |
200 }; | |
201 publisher = { | 179 publisher = { |
202 create = false; | 180 create = false; |
203 publish = true; | 181 publish = true; |
204 retract = true; | 182 retract = true; |
205 get_nodes = true; | 183 get_nodes = true; |
269 end; | 247 end; |
270 | 248 |
271 access_models = { | 249 access_models = { |
272 presence = function (jid) | 250 presence = function (jid) |
273 if subscription_presence(username, jid) then | 251 if subscription_presence(username, jid) then |
274 return "subscriber"; | 252 return "none"; |
275 end | 253 end |
276 return "restricted"; | 254 return "restricted"; |
277 end; | 255 end; |
278 }; | 256 }; |
279 | 257 |