aboutsummaryrefslogtreecommitdiffstats
path: root/core/moduleapi.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-12-08 16:35:00 +0100
committerKim Alvefur <zash@zash.se>2018-12-08 16:35:00 +0100
commitc899c8d357a046e72d4e88c2e05a893c34af2650 (patch)
tree6f46f1f7587973392d1145e3294837aee98dbf3a /core/moduleapi.lua
parentc28be4a630e1e6872438a5822de098295b55b925 (diff)
downloadprosody-c899c8d357a046e72d4e88c2e05a893c34af2650.tar.gz
prosody-c899c8d357a046e72d4e88c2e05a893c34af2650.zip
moduleapi: Use pack from util.table
Diffstat (limited to 'core/moduleapi.lua')
-rw-r--r--core/moduleapi.lua2
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;