diff options
author | Jo?o Duarte <jvsDuarte08@gmail.com> | 2019-06-07 13:09:01 +0100 |
---|---|---|
committer | Jo?o Duarte <jvsDuarte08@gmail.com> | 2019-06-07 13:09:01 +0100 |
commit | 84441e9815f0e9cd322671f893d12ef18230f45c (patch) | |
tree | aff73c095936be147c0c7f99a86b3af3fb757ca7 /prosodyctl | |
parent | 9f5b1c9f72049598a62926a8ecaa48f40d2810f4 (diff) | |
download | prosody-84441e9815f0e9cd322671f893d12ef18230f45c.tar.gz prosody-84441e9815f0e9cd322671f893d12ef18230f45c.zip |
prosodyctl: Renamed the command function 'test' to 'enabled_plugins', which now only shows the plugins, in a list
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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() |