Software /
code /
prosody
Comparison
plugins/mod_admin_telnet.lua @ 5030:9962fc19f9e9
mod_admin_telnet: Import prosody.incoming_s2s
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 28 Jul 2012 01:28:14 +0100 |
parent | 5029:7bcd79631492 |
child | 5120:bcabea740c00 |
child | 5128:834ab74585ec |
comparison
equal
deleted
inserted
replaced
5029:7bcd79631492 | 5030:9962fc19f9e9 |
---|---|
6 -- COPYING file in the source package for more information. | 6 -- COPYING file in the source package for more information. |
7 -- | 7 -- |
8 | 8 |
9 module:set_global(); | 9 module:set_global(); |
10 | 10 |
11 local _G = _G; | |
12 | |
13 local prosody = _G.prosody; | |
14 local hosts = prosody.hosts; | |
15 | |
16 local console_listener = { default_port = 5582; default_mode = "*a"; interface = "127.0.0.1" }; | |
17 | |
18 local hostmanager = require "core.hostmanager"; | 11 local hostmanager = require "core.hostmanager"; |
19 local modulemanager = require "core.modulemanager"; | 12 local modulemanager = require "core.modulemanager"; |
20 local s2smanager = require "core.s2smanager"; | 13 local s2smanager = require "core.s2smanager"; |
21 local portmanager = require "core.portmanager"; | 14 local portmanager = require "core.portmanager"; |
15 | |
16 local _G = _G; | |
17 | |
18 local prosody = _G.prosody; | |
19 local hosts = prosody.hosts; | |
20 local incoming_s2s = prosody.incoming_s2s; | |
21 | |
22 local console_listener = { default_port = 5582; default_mode = "*a"; interface = "127.0.0.1" }; | |
22 | 23 |
23 local iterators = require "util.iterators"; | 24 local iterators = require "util.iterators"; |
24 local keys, values = iterators.keys, iterators.values; | 25 local keys, values = iterators.keys, iterators.values; |
25 local jid = require "util.jid"; | 26 local jid = require "util.jid"; |
26 local jid_bare, jid_split = jid.bare, jid.split; | 27 local jid_bare, jid_split = jid.bare, jid.split; |