# HG changeset patch # User Kim Alvefur # Date 1488203701 -3600 # Node ID 1db51061342b1ae378699a24d11133e004451b2a # Parent 251bf68922d991b94be18617aeb5205c868b3945 prosodyctl: Handle move of 'unpack' in Lua 5.2 diff -r 251bf68922d9 -r 1db51061342b prosodyctl --- a/prosodyctl Sun Feb 26 20:31:08 2017 +0100 +++ b/prosodyctl Mon Feb 27 14:55:01 2017 +0100 @@ -621,6 +621,8 @@ 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