diff options
author | Kim Alvefur <zash@zash.se> | 2017-11-23 20:55:21 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-11-23 20:55:21 +0100 |
commit | 2facc56274dd9156b2d02d87e2e296d3c530332d (patch) | |
tree | 770c515671c01858dd7851f50471690d25f3b562 | |
parent | 2ae9db48c5d493a4b500a35ca868ecef2a8a4c63 (diff) | |
download | prosody-2facc56274dd9156b2d02d87e2e296d3c530332d.tar.gz prosody-2facc56274dd9156b2d02d87e2e296d3c530332d.zip |
util.format: Import unpack from table lib in Lua 5.2+
-rw-r--r-- | util/format.lua | 2 |
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, ...) |