# HG changeset patch # User Matthew Wild # Date 1591287978 -3600 # Node ID 709255e332d823ab59d61342a346f8758c50ae04 # Parent d009a79f723a494623d2305936193df17401455a prosodyctl: Fix traceback when no command provided (thanks Zash) diff -r d009a79f723a -r 709255e332d8 prosodyctl --- 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];