aboutsummaryrefslogtreecommitdiffstats
path: root/util/prosodyctl/shell.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-07-02 17:31:14 +0200
committerKim Alvefur <zash@zash.se>2022-07-02 17:31:14 +0200
commit49a9a1e76a34d67cfa2be24cbb2e2a9db545f969 (patch)
tree6fed48b05f974d945d15a30b9726b06b091b5338 /util/prosodyctl/shell.lua
parentada68efcc9547519a636bc46fdd7a60216a578d5 (diff)
downloadprosody-49a9a1e76a34d67cfa2be24cbb2e2a9db545f969.tar.gz
prosody-49a9a1e76a34d67cfa2be24cbb2e2a9db545f969.zip
util: Remove various Lua 5.1 compatibility hacks
Part of #1600
Diffstat (limited to 'util/prosodyctl/shell.lua')
-rw-r--r--util/prosodyctl/shell.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/util/prosodyctl/shell.lua b/util/prosodyctl/shell.lua
index 8f910301..5f99bec1 100644
--- a/util/prosodyctl/shell.lua
+++ b/util/prosodyctl/shell.lua
@@ -80,8 +80,7 @@ local function start(arg) --luacheck: ignore 212/arg
if arg[1] then
if arg[2] then
-- prosodyctl shell module reload foo bar.com --> module:reload("foo", "bar.com")
- -- COMPAT Lua 5.1 doesn't have the separator argument to string.rep
- arg[1] = string.format("%s:%s("..string.rep("%q, ", #arg-2):sub(1, -3)..")", unpack(arg));
+ arg[1] = string.format("%s:%s("..string.rep("%q", #arg-2,", ")..")", unpack(arg));
end
client.events.add_handler("connected", function()