Comparison

plugins/mod_admin_telnet.lua @ 5023:dcc8e789df36

mod_admin_telnet, prosody, prosodyctl, ejabberd2prosody: Don't depend on modules setting globals
author Florian Zeitz <florob@babelmonkeys.de>
date Sat, 09 Jun 2012 02:27:44 +0200
parent 5021:85b2689dbcfe
child 5024:d25e1b9332cc
comparison
equal deleted inserted replaced
5022:776a57ca0d84 5023:dcc8e789df36
12 12
13 local prosody = _G.prosody; 13 local prosody = _G.prosody;
14 local hosts = prosody.hosts; 14 local hosts = prosody.hosts;
15 15
16 local console_listener = { default_port = 5582; default_mode = "*l"; interface = "127.0.0.1" }; 16 local console_listener = { default_port = 5582; default_mode = "*l"; interface = "127.0.0.1" };
17
18 local hostmanager = require "core.hostmanager";
19 local modulemanager = require "core.modulemanager";
17 20
18 local iterators = require "util.iterators"; 21 local iterators = require "util.iterators";
19 local keys, values = iterators.keys, iterators.values; 22 local keys, values = iterators.keys, iterators.values;
20 local jid = require "util.jid"; 23 local jid = require "util.jid";
21 local jid_bare, jid_split = jid.bare, jid.split; 24 local jid_bare, jid_split = jid.bare, jid.split;