mirror of
https://github.com/bjc/prosody.git
synced 2025-04-06 14:47:37 +03:00
various: Don't rely on _G.unpack existing
This commit is contained in:
parent
2d56ac0394
commit
2b289f34f9
8 changed files with 8 additions and 2 deletions
|
@ -22,6 +22,7 @@ local prosody = _G.prosody;
|
|||
|
||||
local console_listener = { default_port = 5582; default_mode = "*a"; interface = "127.0.0.1" };
|
||||
|
||||
local unpack = table.unpack or unpack; -- luacheck: ignore 113
|
||||
local iterators = require "util.iterators";
|
||||
local keys, values = iterators.keys, iterators.values;
|
||||
local jid_bare, jid_split, jid_join = import("util.jid", "bare", "prepped_split", "join");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue