mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
prosodyctl: Handle move of 'unpack' in Lua 5.2
This commit is contained in:
parent
2b4028fd7e
commit
7890260675
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue