aboutsummaryrefslogtreecommitdiffstats
path: root/util/format.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-11-23 20:55:21 +0100
committerKim Alvefur <zash@zash.se>2017-11-23 20:55:21 +0100
commitf534b7005d80f6d984b8d68dc2bc557504b1d575 (patch)
tree770c515671c01858dd7851f50471690d25f3b562 /util/format.lua
parentf343fc6a4d887cf2573673e660aff17d3d67f0d3 (diff)
downloadprosody-f534b7005d80f6d984b8d68dc2bc557504b1d575.tar.gz
prosody-f534b7005d80f6d984b8d68dc2bc557504b1d575.zip
util.format: Import unpack from table lib in Lua 5.2+
Diffstat (limited to 'util/format.lua')
-rw-r--r--util/format.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/format.lua b/util/format.lua
index 99705d03..c5e513fa 100644
--- a/util/format.lua
+++ b/util/format.lua
@@ -4,7 +4,7 @@
local tostring = tostring;
local select = select;
-local unpack = unpack;
+local unpack = table.unpack or unpack; -- luacheck: ignore 113/unpack
local type = type;
local function format(formatstring, ...)