Comparison

plugins/mod_admin_adhoc.lua @ 4594:565ea0c1a7ea

mod_admin_adhoc: Import util.iterators properly
author Kim Alvefur <zash@zash.se>
date Wed, 07 Mar 2012 21:12:04 +0100
parent 4296:b991ffa0f2c5
child 4595:bd6dc94d60e9
comparison
equal deleted inserted replaced
4591:75b3d0c301d0 4594:565ea0c1a7ea
8 8
9 local prosody = _G.prosody; 9 local prosody = _G.prosody;
10 local hosts = prosody.hosts; 10 local hosts = prosody.hosts;
11 local t_concat = table.concat; 11 local t_concat = table.concat;
12 12
13 require "util.iterators"; 13 local iterators = require "util.iterators";
14 local keys, values = iterators.keys, iterators.values;
14 local usermanager_user_exists = require "core.usermanager".user_exists; 15 local usermanager_user_exists = require "core.usermanager".user_exists;
15 local usermanager_create_user = require "core.usermanager".create_user; 16 local usermanager_create_user = require "core.usermanager".create_user;
16 local usermanager_get_password = require "core.usermanager".get_password; 17 local usermanager_get_password = require "core.usermanager".get_password;
17 local usermanager_set_password = require "core.usermanager".set_password; 18 local usermanager_set_password = require "core.usermanager".set_password;
18 local is_admin = require "core.usermanager".is_admin; 19 local is_admin = require "core.usermanager".is_admin;