Software /
code /
prosody
Changeset
13623:e226f9632a48
mod_pubsub: Remove duplicate create_node command
Removed the one without error handling.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 14 Jan 2025 12:26:14 +0000 |
parents | 13622:4e908958660e |
children | 13624:de902cc0d46c |
files | plugins/mod_pubsub/commands.lib.lua |
diffstat | 1 files changed, 0 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pubsub/commands.lib.lua Tue Jan 14 12:25:53 2025 +0000 +++ b/plugins/mod_pubsub/commands.lib.lua Tue Jan 14 12:26:14 2025 +0000 @@ -7,22 +7,6 @@ module:add_item("shell-command", { section = "pubsub"; section_desc = "Manage publish/subscribe nodes"; - name = "create_node"; - desc = "Create a node with the specified name"; - args = { - { name = "service_jid", type = "string" }; - { name = "node_name", type = "string" }; - }; - host_selector = "service_jid"; - - handler = function (self, service_jid, node_name) --luacheck: ignore 212/self - return get_service(service_jid):create(node_name, true); - end; - }); - - module:add_item("shell-command", { - section = "pubsub"; - section_desc = "Manage publish/subscribe nodes"; name = "list_nodes"; desc = "List nodes on a pubsub service"; args = {