Software /
code /
prosody
Changeset
4582:542afb9c2ab1
mod_admin_telnet: Import util.iterators properly
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 03 Mar 2012 00:32:57 +0100 |
parents | 4581:d2eb5962d235 |
children | 4583:6f2789939d35 |
files | plugins/mod_admin_telnet.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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;