From a4652f2478890ee6a86a28f5de5e3e8dcf10f9e7 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 7 Mar 2012 21:12:04 +0100 Subject: mod_admin_adhoc: Import util.iterators properly --- plugins/mod_admin_adhoc.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/mod_admin_adhoc.lua') 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; -- cgit v1.2.3 From 65b0a00e7cf26917ed00df3c5b3aac8ed0e6fb6d Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 7 Mar 2012 21:14:08 +0100 Subject: mod_admin_adhoc: Use module:depends() --- plugins/mod_admin_adhoc.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/mod_admin_adhoc.lua') diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua index a594483c..6f1357a9 100644 --- a/plugins/mod_admin_adhoc.lua +++ b/plugins/mod_admin_adhoc.lua @@ -24,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) -- cgit v1.2.3