Software /
code /
prosody
Diff
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 |
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua Sat Mar 03 00:14:48 2012 +0100 +++ b/plugins/mod_admin_telnet.lua Sat Mar 03 00:32:57 2012 +0100 @@ -15,7 +15,8 @@ local console_listener = { default_port = 5582; default_mode = "*l"; interface = "127.0.0.1" }; -require "util.iterators"; +local iterators = require "util.iterators"; +local keys, values = iterators.keys, iterators.values; local jid_bare = require "util.jid".bare; local set, array = require "util.set", require "util.array"; local cert_verify_identity = require "util.x509".verify_identity;