mod_pubsub: Remove duplicate create_node command

Removed the one without error handling.
This commit is contained in:
Matthew Wild 2025-01-14 12:26:14 +00:00
parent cafbad2d01
commit 918e8f51e8

View file

@ -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";