# HG changeset patch # User João Duarte # Date 1563992995 25200 # Node ID 25deff8b2db48741ecbd298ecd5e60c4ec11aa67 # Parent f365f814d6414ca0f0b4c5de60ca1755364487cf prosodyctl: Removed the local_plugins command diff -r f365f814d641 -r 25deff8b2db4 prosodyctl --- a/prosodyctl Wed Jul 24 11:26:29 2019 -0700 +++ b/prosodyctl Wed Jul 24 11:29:55 2019 -0700 @@ -160,27 +160,6 @@ 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 @@ 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 = {};