Comparison

plugins/mod_admin_telnet.lua @ 9691:e11e076f0eb8

various: Don't rely on _G.unpack existing
author Kim Alvefur <zash@zash.se>
date Sat, 08 Dec 2018 17:09:55 +0100
parent 9454:6780049be177
child 9711:39dc037875e1
comparison
equal deleted inserted replaced
9690:75ed3403065d 9691:e11e076f0eb8
20 20
21 local prosody = _G.prosody; 21 local prosody = _G.prosody;
22 22
23 local console_listener = { default_port = 5582; default_mode = "*a"; interface = "127.0.0.1" }; 23 local console_listener = { default_port = 5582; default_mode = "*a"; interface = "127.0.0.1" };
24 24
25 local unpack = table.unpack or unpack; -- luacheck: ignore 113
25 local iterators = require "util.iterators"; 26 local iterators = require "util.iterators";
26 local keys, values = iterators.keys, iterators.values; 27 local keys, values = iterators.keys, iterators.values;
27 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");
28 local set, array = require "util.set", require "util.array"; 29 local set, array = require "util.set", require "util.array";
29 local cert_verify_identity = require "util.x509".verify_identity; 30 local cert_verify_identity = require "util.x509".verify_identity;