aboutsummaryrefslogtreecommitdiffstats
path: root/util
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
commit2facc56274dd9156b2d02d87e2e296d3c530332d (patch)
tree770c515671c01858dd7851f50471690d25f3b562 /util
parent2ae9db48c5d493a4b500a35ca868ecef2a8a4c63 (diff)
downloadprosody-2facc56274dd9156b2d02d87e2e296d3c530332d.tar.gz
prosody-2facc56274dd9156b2d02d87e2e296d3c530332d.zip
util.format: Import unpack from table lib in Lua 5.2+
Diffstat (limited to 'util')
-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, ...)