aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-02-27 14:55:01 +0100
committerKim Alvefur <zash@zash.se>2017-02-27 14:55:01 +0100
commit9ee4decd2f4c03601463f1aeb88e77de6c55f281 (patch)
tree819bb0744c72e476063372397ffe7bfa9c847821 /prosodyctl
parentecf80c11c121897db214af739b89408ec90720d0 (diff)
downloadprosody-9ee4decd2f4c03601463f1aeb88e77de6c55f281.tar.gz
prosody-9ee4decd2f4c03601463f1aeb88e77de6c55f281.zip
prosodyctl: Handle move of 'unpack' in Lua 5.2
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl2
1 files changed, 2 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index 12c40c71..1ee780ba 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -621,6 +621,8 @@ function commands.reload(arg)
end
-- ejabberdctl compatibility
+local unpack = table.unpack or unpack; -- luacheck: ignore 113
+
function commands.register(arg)
local user, host, password = unpack(arg);
if (not (user and host)) or arg[1] == "--help" then