Mercurial > prosody-hg
comparison plugins/mod_pubsub/mod_pubsub.lua @ 8337:dc4ea43ac463
mod_pubsub: Add support for Create and Configure
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 18 Oct 2017 09:08:16 +0200 |
| parents | 036e46d12b78 |
| children | 4fce6bc0719f |
comparison
equal
deleted
inserted
replaced
| 8336:587305c0ff85 | 8337:dc4ea43ac463 |
|---|---|
| 60 | 60 |
| 61 module:hook("iq/host/"..xmlns_pubsub..":pubsub", handle_pubsub_iq); | 61 module:hook("iq/host/"..xmlns_pubsub..":pubsub", handle_pubsub_iq); |
| 62 module:hook("iq/host/"..xmlns_pubsub_owner..":pubsub", handle_pubsub_iq); | 62 module:hook("iq/host/"..xmlns_pubsub_owner..":pubsub", handle_pubsub_iq); |
| 63 | 63 |
| 64 local feature_map = { | 64 local feature_map = { |
| 65 create = { "create-nodes", "instant-nodes", "item-ids" }; | 65 create = { "create-nodes", "instant-nodes", "item-ids", "create-and-configure" }; |
| 66 retract = { "delete-items", "retract-items" }; | 66 retract = { "delete-items", "retract-items" }; |
| 67 purge = { "purge-nodes" }; | 67 purge = { "purge-nodes" }; |
| 68 publish = { "publish", autocreate_on_publish and "auto-create" }; | 68 publish = { "publish", autocreate_on_publish and "auto-create" }; |
| 69 delete = { "delete-nodes" }; | 69 delete = { "delete-nodes" }; |
| 70 get_items = { "retrieve-items" }; | 70 get_items = { "retrieve-items" }; |
