Software /
code /
prosody
Comparison
prosodyctl @ 10122:95814c597836
prosodyctl: Created a custom function, 'test', that prints back a welcoming message
author | João Duarte <jvsDuarte08@gmail.com> |
---|---|
date | Fri, 07 Jun 2019 11:36:13 +0100 |
parent | 9992:9d6baacdd8e6 |
child | 10123:5d132d4aac55 |
comparison
equal
deleted
inserted
replaced
10044:4fd27023224a | 10122:95814c597836 |
---|---|
82 | 82 |
83 local prosodyctl_timeout = (configmanager.get("*", "prosodyctl_timeout") or 5) * 2; | 83 local prosodyctl_timeout = (configmanager.get("*", "prosodyctl_timeout") or 5) * 2; |
84 ----------------------- | 84 ----------------------- |
85 local commands = {}; | 85 local commands = {}; |
86 local command = table.remove(arg, 1); | 86 local command = table.remove(arg, 1); |
87 | |
88 function commands.test() | |
89 show_message [[Well, hello there!]] | |
90 end | |
87 | 91 |
88 function commands.adduser(arg) | 92 function commands.adduser(arg) |
89 if not arg[1] or arg[1] == "--help" then | 93 if not arg[1] or arg[1] == "--help" then |
90 show_usage([[adduser JID]], [[Create the specified user account in Prosody]]); | 94 show_usage([[adduser JID]], [[Create the specified user account in Prosody]]); |
91 return 1; | 95 return 1; |