aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Duarte <jvsDuarte08@gmail.com>2019-06-07 13:09:01 +0100
committerJoão Duarte <jvsDuarte08@gmail.com>2019-06-07 13:09:01 +0100
commit8025f98427a23a64f3dd303aedde6fcc8d5ea688 (patch)
treeaff73c095936be147c0c7f99a86b3af3fb757ca7
parentcf25afe5b143eea8b1ca7d74462965d6e8184b2c (diff)
downloadprosody-8025f98427a23a64f3dd303aedde6fcc8d5ea688.tar.gz
prosody-8025f98427a23a64f3dd303aedde6fcc8d5ea688.zip
prosodyctl: Renamed the command function 'test' to 'enabled_plugins', which now only shows the plugins, in a list
-rwxr-xr-xprosodyctl7
1 files changed, 4 insertions, 3 deletions
diff --git a/prosodyctl b/prosodyctl
index 00d24b1c..a7300973 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -85,9 +85,10 @@ local prosodyctl_timeout = (configmanager.get("*", "prosodyctl_timeout") or 5) *
local commands = {};
local command = table.remove(arg, 1);
-function commands.test()
- show_message [[Well, hello there!]]
- show_warning("Trying to peek at the plugin directory: '%s'", modulemanager.get_modules_for_host())
+function commands.enabled_plugins()
+ for module in modulemanager.get_modules_for_host() do
+ show_warning("%s", module)
+ end
end
function commands.local_plugins()