From 918e8f51e82cd26898d0a3aa8d178ad50fc7e922 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 14 Jan 2025 12:26:14 +0000 Subject: mod_pubsub: Remove duplicate create_node command Removed the one without error handling. --- plugins/mod_pubsub/commands.lib.lua | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'plugins/mod_pubsub') diff --git a/plugins/mod_pubsub/commands.lib.lua b/plugins/mod_pubsub/commands.lib.lua index 59bddec8..d07b226f 100644 --- a/plugins/mod_pubsub/commands.lib.lua +++ b/plugins/mod_pubsub/commands.lib.lua @@ -4,22 +4,6 @@ local st = require "prosody.util.stanza"; local pubsub_lib = module:require("mod_pubsub/pubsub"); local function add_commands(get_service) - 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"; -- cgit v1.2.3