Changeset

4594:565ea0c1a7ea

mod_admin_adhoc: Import util.iterators properly
author Kim Alvefur <zash@zash.se>
date Wed, 07 Mar 2012 21:12:04 +0100
parents 4591:75b3d0c301d0
children 4595:bd6dc94d60e9
files plugins/mod_admin_adhoc.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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;