Comparison

plugins/mod_admin_shell.lua @ 12589:39ae08180c81

compat: Remove handling of Lua 5.1 location of 'unpack' function
author Kim Alvefur <zash@zash.se>
date Mon, 11 Jul 2022 19:07:38 +0200
parent 12551:3b7e97e0a8ef
child 12603:05ca75309fa0
comparison
equal deleted inserted replaced
12588:b15d3cf98ba6 12589:39ae08180c81
20 20
21 local _G = _G; 21 local _G = _G;
22 22
23 local prosody = _G.prosody; 23 local prosody = _G.prosody;
24 24
25 local unpack = table.unpack or unpack; -- luacheck: ignore 113 25 local unpack = table.unpack;
26 local iterators = require "util.iterators"; 26 local iterators = require "util.iterators";
27 local keys, values = iterators.keys, iterators.values; 27 local keys, values = iterators.keys, iterators.values;
28 local jid_bare, jid_split, jid_join = import("util.jid", "bare", "prepped_split", "join"); 28 local jid_bare, jid_split, jid_join = import("util.jid", "bare", "prepped_split", "join");
29 local set, array = require "util.set", require "util.array"; 29 local set, array = require "util.set", require "util.array";
30 local cert_verify_identity = require "util.x509".verify_identity; 30 local cert_verify_identity = require "util.x509".verify_identity;