Mercurial > prosody-hg
comparison plugins/mod_console.lua @ 1065:3806173670f2
mod_*: Fix many unnecessary global accesses in modules (already committed to main repo)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 29 Apr 2009 02:08:12 +0100 |
| parents | 2c0b9e3c11c3 |
| children | 1ac11fb753ca |
comparison
equal
deleted
inserted
replaced
| 1064:3e945c3938ad | 1065:3806173670f2 |
|---|---|
| 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.host = "*"; |
| 10 | 10 |
| 11 local hosts = _G.hosts; | |
| 11 local connlisteners_register = require "net.connlisteners".register; | 12 local connlisteners_register = require "net.connlisteners".register; |
| 12 | 13 |
| 13 local console_listener = { default_port = 5582; default_mode = "*l"; }; | 14 local console_listener = { default_port = 5582; default_mode = "*l"; }; |
| 14 | 15 |
| 15 local commands = {}; | 16 local commands = {}; |
