diff options
author | Matthew Wild <mwild1@gmail.com> | 2020-06-04 17:26:18 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2020-06-04 17:26:18 +0100 |
commit | 5bc24e6161f41e1428fd1cc3af25fda2d80781f7 (patch) | |
tree | f8fa59896a5ccd8228166498569dc7048a5996a5 | |
parent | 3a849a580d3fabdfb22c7da60710d3ec8ec75e42 (diff) | |
download | prosody-5bc24e6161f41e1428fd1cc3af25fda2d80781f7.tar.gz prosody-5bc24e6161f41e1428fd1cc3af25fda2d80781f7.zip |
prosodyctl: Fix traceback when no command provided (thanks Zash)
-rwxr-xr-x | prosodyctl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -587,7 +587,7 @@ local command_runner = async.runner(function () 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]; |