mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
compat: Use table.pack (there since Lua 5.2) over our util.table
Added in d278a770eddc avoid having to deal with its absence in Lua 5.1. No longer needed when Lua 5.1 support is dropped.
This commit is contained in:
parent
5251c9b686
commit
f8e73eba98
5 changed files with 5 additions and 5 deletions
|
@ -26,7 +26,7 @@ local error, setmetatable, type = error, setmetatable, type;
|
|||
local ipairs, pairs, select = ipairs, pairs, select;
|
||||
local tonumber, tostring = tonumber, tostring;
|
||||
local require = require;
|
||||
local pack = table.pack or require "util.table".pack; -- table.pack is only in 5.2
|
||||
local pack = table.pack;
|
||||
local unpack = table.unpack;
|
||||
|
||||
local prosody = prosody;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue