Software /
code /
prosody
Comparison
plugins/mod_admin_telnet.lua @ 4623:403b56b78018
mod_posix, mod_bosh, mod_admin_telnet: Use module:set_global()
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 15 Mar 2012 14:47:46 +0100 |
parent | 4582:542afb9c2ab1 |
child | 4644:fb067c8a8d2e |
comparison
equal
deleted
inserted
replaced
4622:9eccb5a27989 | 4623:403b56b78018 |
---|---|
4 -- | 4 -- |
5 -- This project is MIT/X11 licensed. Please see the | 5 -- This project is MIT/X11 licensed. Please see the |
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.host = "*"; | 9 module:set_global(); |
10 | 10 |
11 local _G = _G; | 11 local _G = _G; |
12 | 12 |
13 local prosody = _G.prosody; | 13 local prosody = _G.prosody; |
14 local hosts = prosody.hosts; | 14 local hosts = prosody.hosts; |