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
commit5bc24e6161f41e1428fd1cc3af25fda2d80781f7 (patch)
treef8fa59896a5ccd8228166498569dc7048a5996a5
parent3a849a580d3fabdfb22c7da60710d3ec8ec75e42 (diff)
downloadprosody-5bc24e6161f41e1428fd1cc3af25fda2d80781f7.tar.gz
prosody-5bc24e6161f41e1428fd1cc3af25fda2d80781f7.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];