aboutsummaryrefslogtreecommitdiffstats
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
commit66bb4ab4494853abfad5a53854355f03d4b7ae6e (patch)
tree2bbdd3a5a6a08369b551bfaeb104c55dccd48892
parent2bb05d010d9b237a088bd9b4c997451407191d3f (diff)
downloadprosody-66bb4ab4494853abfad5a53854355f03d4b7ae6e.tar.gz
prosody-66bb4ab4494853abfad5a53854355f03d4b7ae6e.zip
prosodyctl: Created a custom function, 'test', that prints back a welcoming message
-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]]);