Software /
code /
prosody
Changeset
10905:709255e332d8
prosodyctl: Fix traceback when no command provided (thanks Zash)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 04 Jun 2020 17:26:18 +0100 |
parents | 10904:d009a79f723a |
children | 10906:a1fed82c44b9 |
files | prosodyctl |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/prosodyctl Thu Jun 04 17:24:30 2020 +0100 +++ b/prosodyctl Thu Jun 04 17:26:18 2020 +0100 @@ -587,7 +587,7 @@ end end - if not commands[command] then + if command and not commands[command] then local ok, command_module = pcall(require, "util.prosodyctl."..command); if ok and command_module[command] then commands[command] = command_module[command];