aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorJo?o Duarte <jvsDuarte08@gmail.com>2019-06-07 11:36:13 +0100
committerJo?o Duarte <jvsDuarte08@gmail.com>2019-06-07 11:36:13 +0100
commit80cb8096a36c026c412d26e2a55cc744d05f6da6 (patch)
tree2bbdd3a5a6a08369b551bfaeb104c55dccd48892 /prosodyctl
parent9a5a3fd0f10693e6cba2779095398614eb94e68c (diff)
downloadprosody-80cb8096a36c026c412d26e2a55cc744d05f6da6.tar.gz
prosody-80cb8096a36c026c412d26e2a55cc744d05f6da6.zip
prosodyctl: Created a custom function, 'test', that prints back a welcoming message
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl4
1 files changed, 4 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index f5786ff9..db7b0dc4 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -85,6 +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!]]
+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]]);