aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/prosodyctl/shell.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/prosodyctl/shell.lua b/util/prosodyctl/shell.lua
index f3279e75..05f81f15 100644
--- a/util/prosodyctl/shell.lua
+++ b/util/prosodyctl/shell.lua
@@ -83,7 +83,7 @@ local function start(arg) --luacheck: ignore 212/arg
for i = 3, #arg do
if arg[i]:sub(1, 1) == ":" then
table.insert(fmt, i, ")%s(");
- elseif i > 3 and fmt[i - 1] == "%q" then
+ elseif i > 3 and fmt[i - 1]:match("%%q$") then
table.insert(fmt, i, ", %q");
else
table.insert(fmt, i, "%q");