various: Don't rely on _G.unpack existing

This commit is contained in:
Kim Alvefur 2018-12-08 17:09:55 +01:00
parent 2d56ac0394
commit 2b289f34f9
8 changed files with 8 additions and 2 deletions

View file

@ -14,6 +14,7 @@ local is_contact_subscribed = require "core.rostermanager".is_contact_subscribed
local pairs = pairs;
local next = next;
local type = type;
local unpack = table.unpack or unpack; -- luacheck: ignore 113
local calculate_hash = require "util.caps".calculate_hash;
local core_post_stanza = prosody.core_post_stanza;
local bare_sessions = prosody.bare_sessions;