diff options
author | Kim Alvefur <zash@zash.se> | 2016-02-18 14:57:04 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-02-18 14:57:04 +0100 |
commit | de7b01d7d2d4360f44e24a6d573c001e083de059 (patch) | |
tree | d4b877f0a532c9a5ad989a4ca42cb05ad1ccf1aa /core/modulemanager.lua | |
parent | e169a3f1c53e68486428f55f7ba9d40a5c21932f (diff) | |
download | prosody-de7b01d7d2d4360f44e24a6d573c001e083de059.tar.gz prosody-de7b01d7d2d4360f44e24a6d573c001e083de059.zip |
loggingmanager,modulemanager,moduleapi: Localize unpack compatible with Lua 5.2+
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r-- | core/modulemanager.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua index 41c9b2fe..5d030513 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -23,7 +23,8 @@ local setmetatable, rawget = setmetatable, rawget; local ipairs, pairs, type, tostring, t_insert = ipairs, pairs, type, tostring, table.insert; local debug_traceback = debug.traceback; -local unpack, select = unpack, select; +local select = select; +local unpack = table.unpack or unpack; local pcall = function(f, ...) local n = select("#", ...); local params = {...}; |