aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl17
1 files changed, 16 insertions, 1 deletions
diff --git a/prosodyctl b/prosodyctl
index 4036c59a..00d24b1c 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -87,10 +87,25 @@ local command = table.remove(arg, 1);
function commands.test()
show_message [[Well, hello there!]]
- --show_message [[Enabled Plugins: ], modulemanager.get_modules_for_host()]
show_warning("Trying to peek at the plugin directory: '%s'", modulemanager.get_modules_for_host())
end
+function commands.local_plugins()
+ 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()
+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]]);