Mercurial > prosody-hg
comparison util/pubsub.lua @ 9233:885dd6845e62
util.pubsub: Explicitly add all capabilities to the 'outcast' affiliation for completeness
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 31 Aug 2018 17:49:14 +0200 |
| parents | 65c83bfcf2ee |
| children | 83375ec33619 |
comparison
equal
deleted
inserted
replaced
| 9232:65c83bfcf2ee | 9233:885dd6845e62 |
|---|---|
| 9 itemcheck = function () return true; end; | 9 itemcheck = function () return true; end; |
| 10 get_affiliation = function () end; | 10 get_affiliation = function () end; |
| 11 normalize_jid = function (jid) return jid; end; | 11 normalize_jid = function (jid) return jid; end; |
| 12 capabilities = { | 12 capabilities = { |
| 13 outcast = { | 13 outcast = { |
| 14 create = false; | |
| 15 publish = false; | |
| 16 retract = false; | |
| 17 get_nodes = false; | |
| 18 | |
| 19 subscribe = false; | |
| 20 unsubscribe = false; | |
| 14 get_subscription = true; | 21 get_subscription = true; |
| 15 get_subscriptions = true; | 22 get_subscriptions = true; |
| 23 get_items = false; | |
| 24 | |
| 25 subscribe_other = false; | |
| 26 unsubscribe_other = false; | |
| 27 get_subscription_other = false; | |
| 28 get_subscriptions_other = false; | |
| 29 | |
| 16 be_subscribed = false; | 30 be_subscribed = false; |
| 17 be_unsubscribed = true; | 31 be_unsubscribed = true; |
| 32 | |
| 33 set_affiliation = false; | |
| 18 }; | 34 }; |
| 19 none = { | 35 none = { |
| 20 create = false; | 36 create = false; |
| 21 publish = false; | 37 publish = false; |
| 22 retract = false; | 38 retract = false; |
