diff options
author | João Duarte <jvsDuarte08@gmail.com> | 2019-06-07 11:36:13 +0100 |
---|---|---|
committer | João Duarte <jvsDuarte08@gmail.com> | 2019-06-07 11:36:13 +0100 |
commit | 66bb4ab4494853abfad5a53854355f03d4b7ae6e (patch) | |
tree | 2bbdd3a5a6a08369b551bfaeb104c55dccd48892 | |
parent | 2bb05d010d9b237a088bd9b4c997451407191d3f (diff) | |
download | prosody-66bb4ab4494853abfad5a53854355f03d4b7ae6e.tar.gz prosody-66bb4ab4494853abfad5a53854355f03d4b7ae6e.zip |
prosodyctl: Created a custom function, 'test', that prints back a welcoming message
-rwxr-xr-x | prosodyctl | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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]]); |