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 | 366a0994097c212ff8859af10c57da4576c454b0 (patch) | |
tree | f8fa59896a5ccd8228166498569dc7048a5996a5 | |
parent | 1b30a8e979ed1962480e8f89f802211858896f84 (diff) | |
download | prosody-366a0994097c212ff8859af10c57da4576c454b0.tar.gz prosody-366a0994097c212ff8859af10c57da4576c454b0.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]; |