diff options
author | Kim Alvefur <zash@zash.se> | 2018-12-08 16:35:00 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-12-08 16:35:00 +0100 |
commit | 9ca48298d7444c3fa207487419e06c76716cb795 (patch) | |
tree | 6f46f1f7587973392d1145e3294837aee98dbf3a | |
parent | 7d5ceb5754d44db6255a5f5325a737682c0a3178 (diff) | |
download | prosody-9ca48298d7444c3fa207487419e06c76716cb795.tar.gz prosody-9ca48298d7444c3fa207487419e06c76716cb795.zip |
moduleapi: Use pack from util.table
-rw-r--r-- | core/moduleapi.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua index 10f9f04d..d2aa1e8c 100644 --- a/core/moduleapi.lua +++ b/core/moduleapi.lua @@ -20,7 +20,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 function(...) return {n=select("#",...), ...}; end -- table.pack is only in 5.2 +local pack = table.pack or require "util.table".pack; -- table.pack is only in 5.2 local unpack = table.unpack or unpack; --luacheck: ignore 113 -- renamed in 5.2 local prosody = prosody; |