aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo?o Duarte <jvsDuarte08@gmail.com>2019-07-24 11:29:55 -0700
committerJo?o Duarte <jvsDuarte08@gmail.com>2019-07-24 11:29:55 -0700
commit6244336ad342df68da979c8a5a06497dc055cee2 (patch)
tree2ad424c3cd09f9743891471ab4ed5524f4365306
parentf98d9a47d95c36380545c180ed32e9b0b14f9138 (diff)
downloadprosody-6244336ad342df68da979c8a5a06497dc055cee2.tar.gz
prosody-6244336ad342df68da979c8a5a06497dc055cee2.zip
prosodyctl: Removed the local_plugins command
-rwxr-xr-xprosodyctl25
1 files changed, 2 insertions, 23 deletions
diff --git a/prosodyctl b/prosodyctl
index c50900f2..cf51ca7d 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -160,27 +160,6 @@ function commands.enabled_plugins(arg)
end
end
-function commands.local_plugins(arg)
- if arg[1] == "--help" then
- show_usage([[local_plugins]], [[Shows plugins currently available for prosody, locally]]);
- return 1;
- end
- local directory = "./plugins"
- local i, t, popen = 0, {}, io.popen
- local pfile = popen('ls -a "'..directory..'"')
- for filename in pfile:lines() do
- if filename == "." or filename == ".." then
- i = i + 1
- else
- i = i + 1
- t[i] = filename
- show_warning("%s", t[i])
- end
- end
- pfile:close()
- return 0;
-end
-
function commands.adduser(arg)
if not arg[1] or arg[1] == "--help" then
show_usage([[adduser JID]], [[Create the specified user account in Prosody]]);
@@ -1446,8 +1425,8 @@ local command_runner = async.runner(function ()
print("Where COMMAND may be one of:\n");
local hidden_commands = require "util.set".new{ "register", "unregister", "addplugin" };
- local commands_order = { "install", "remove", "list", "enabled_plugins", "local_plugins","adduser", "passwd", "deluser", "start", "stop", "restart",
- "reload", "about", "list" };
+ local commands_order = { "install", "remove", "list", "enabled_plugins", "adduser", "passwd", "deluser", "start", "stop", "restart", "reload",
+ "about", "list" };
local done = {};