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
commitb7466453ea62bb0c9724d1b807fca2bfa705ee58 (patch)
treec04dfefeb392bb7f9d185c3379ac50c6555204ee
parentfa7ec9da2f20568b44741673b97480b916e8c779 (diff)
parent65b0a00e7cf26917ed00df3c5b3aac8ed0e6fb6d (diff)
downloadprosody-b7466453ea62bb0c9724d1b807fca2bfa705ee58.tar.gz
prosody-b7466453ea62bb0c9724d1b807fca2bfa705ee58.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)