mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
mod_pubsub: Remove duplicate create_node command
Removed the one without error handling.
This commit is contained in:
parent
cafbad2d01
commit
918e8f51e8
1 changed files with 0 additions and 16 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue