Comparison

plugins/mod_admin_telnet.lua @ 4582:542afb9c2ab1

mod_admin_telnet: Import util.iterators properly
author Kim Alvefur <zash@zash.se>
date Sat, 03 Mar 2012 00:32:57 +0100
parent 4571:32d532b95dc7
child 4623:403b56b78018
comparison
equal deleted inserted replaced
4581:d2eb5962d235 4582:542afb9c2ab1
13 local prosody = _G.prosody; 13 local prosody = _G.prosody;
14 local hosts = prosody.hosts; 14 local hosts = prosody.hosts;
15 15
16 local console_listener = { default_port = 5582; default_mode = "*l"; interface = "127.0.0.1" }; 16 local console_listener = { default_port = 5582; default_mode = "*l"; interface = "127.0.0.1" };
17 17
18 require "util.iterators"; 18 local iterators = require "util.iterators";
19 local keys, values = iterators.keys, iterators.values;
19 local jid_bare = require "util.jid".bare; 20 local jid_bare = require "util.jid".bare;
20 local set, array = require "util.set", require "util.array"; 21 local set, array = require "util.set", require "util.array";
21 local cert_verify_identity = require "util.x509".verify_identity; 22 local cert_verify_identity = require "util.x509".verify_identity;
22 23
23 local commands = module:shared("commands") 24 local commands = module:shared("commands")