Software /
code /
prosody
Diff
prosodyctl @ 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 |
parent | 10871:e5dee71d0ebb |
child | 10964:d6a3d652ca32 |
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];