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
commit84441e9815f0e9cd322671f893d12ef18230f45c (patch)
treeaff73c095936be147c0c7f99a86b3af3fb757ca7
parent9f5b1c9f72049598a62926a8ecaa48f40d2810f4 (diff)
downloadprosody-84441e9815f0e9cd322671f893d12ef18230f45c.tar.gz
prosody-84441e9815f0e9cd322671f893d12ef18230f45c.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()