aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2020-06-04 17:26:18 +0100
committerMatthew Wild <mwild1@gmail.com>2020-06-04 17:26:18 +0100
commit366a0994097c212ff8859af10c57da4576c454b0 (patch)
treef8fa59896a5ccd8228166498569dc7048a5996a5
parent1b30a8e979ed1962480e8f89f802211858896f84 (diff)
downloadprosody-366a0994097c212ff8859af10c57da4576c454b0.tar.gz
prosody-366a0994097c212ff8859af10c57da4576c454b0.zip
prosodyctl: Fix traceback when no command provided (thanks Zash)
-rwxr-xr-xprosodyctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/prosodyctl b/prosodyctl
index 3b5291d6..288d20b2 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -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];