# HG changeset patch # User Kim Alvefur # Date 1331151124 -3600 # Node ID 565ea0c1a7ea88801d03e43cd2ae369fc3bae6d7 # Parent 75b3d0c301d0622b41f83c1836edb9c825d3957b mod_admin_adhoc: Import util.iterators properly diff -r 75b3d0c301d0 -r 565ea0c1a7ea plugins/mod_admin_adhoc.lua --- 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;