aboutsummaryrefslogtreecommitdiffstats
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
commit789026067573c961f96f9f5db83faf7346946b62 (patch)
tree819bb0744c72e476063372397ffe7bfa9c847821
parent2b4028fd7e707dc56356330366829f1c93e2d952 (diff)
downloadprosody-789026067573c961f96f9f5db83faf7346946b62.tar.gz
prosody-789026067573c961f96f9f5db83faf7346946b62.zip
prosodyctl: Handle move of 'unpack' in Lua 5.2
-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