aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-03-09 18:39:09 +0000
committerMatthew Wild <mwild1@gmail.com>2012-03-09 18:39:09 +0000
commitd1d691c559b8a95f6b0b16a586ca1387330af467 (patch)
treec04dfefeb392bb7f9d185c3379ac50c6555204ee
parent152c4a280fdf2881b1fa157e4d8ca93b7b701d20 (diff)
parentd0e26c42f6716298c0cb7f245e25036c4f5d7561 (diff)
downloadprosody-d1d691c559b8a95f6b0b16a586ca1387330af467.tar.gz
prosody-d1d691c559b8a95f6b0b16a586ca1387330af467.zip
Merge with Zash
-rw-r--r--plugins/mod_admin_adhoc.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua
index d78c1aee..6f1357a9 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;
@@ -23,6 +24,7 @@ local dataforms_new = require "util.dataforms".new;
local array = require "util.array";
local modulemanager = require "modulemanager";
+module:depends"adhoc";
local adhoc_new = module:require "adhoc".new;
function add_user_command_handler(self, data, state)