aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_adhoc.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-03-07 21:12:04 +0100
committerKim Alvefur <zash@zash.se>2012-03-07 21:12:04 +0100
commitdf4bd370e7ad7bc3807df566d10b3d491e706bb8 (patch)
tree5e386597e80c80bd51f3fe43b2fe05c3cdc2f25a /plugins/mod_admin_adhoc.lua
parent75bc6dcc563eeefa564e653f363748c0f4f7fb0e (diff)
downloadprosody-df4bd370e7ad7bc3807df566d10b3d491e706bb8.tar.gz
prosody-df4bd370e7ad7bc3807df566d10b3d491e706bb8.zip
mod_admin_adhoc: Import util.iterators properly
Diffstat (limited to 'plugins/mod_admin_adhoc.lua')
-rw-r--r--plugins/mod_admin_adhoc.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua
index d78c1aee..a594483c 100644
--- a/plugins/mod_admin_adhoc.lua
+++ b/plugins/mod_admin_adhoc.lua
@@ -10,7 +10,8 @@ local prosody = _G.prosody;
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;