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 | f534b7005d80f6d984b8d68dc2bc557504b1d575 (patch) | |
tree | 770c515671c01858dd7851f50471690d25f3b562 | |
parent | f343fc6a4d887cf2573673e660aff17d3d67f0d3 (diff) | |
download | prosody-f534b7005d80f6d984b8d68dc2bc557504b1d575.tar.gz prosody-f534b7005d80f6d984b8d68dc2bc557504b1d575.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, ...) |