# HG changeset patch # User João Duarte # Date 1559903773 -3600 # Node ID 95814c5978361d5c9b5616ccbf2b87c120f67895 # Parent 4fd27023224aebbbacfaa6a603c748b37f7b95b6 prosodyctl: Created a custom function, 'test', that prints back a welcoming message diff -r 4fd27023224a -r 95814c597836 prosodyctl --- a/prosodyctl Mon Jun 03 20:51:15 2019 +0200 +++ b/prosodyctl Fri Jun 07 11:36:13 2019 +0100 @@ -85,6 +85,10 @@ 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]]);