Software /
code /
prosody
Diff
plugins/mod_admin_adhoc.lua @ 4594:565ea0c1a7ea
mod_admin_adhoc: Import util.iterators properly
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 07 Mar 2012 21:12:04 +0100 |
parent | 4296:b991ffa0f2c5 |
child | 4595:bd6dc94d60e9 |
line wrap: on
line diff
--- a/plugins/mod_admin_adhoc.lua Wed Mar 07 20:11:01 2012 +0000 +++ b/plugins/mod_admin_adhoc.lua Wed Mar 07 21:12:04 2012 +0100 @@ -10,7 +10,8 @@ local hosts = prosody.hosts; local t_concat = table.concat; -require "util.iterators"; +local iterators = require "util.iterators"; +local keys, values = iterators.keys, iterators.values; local usermanager_user_exists = require "core.usermanager".user_exists; local usermanager_create_user = require "core.usermanager".create_user; local usermanager_get_password = require "core.usermanager".get_password;