Software / code / prosody
Comparison
plugins/mod_console.lua @ 1042:a3d77353c18a
mod_*: Fix a load of global accesses
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 22 Apr 2009 21:32:23 +0100 |
| parent | 896:2c0b9e3c11c3 |
| child | 1085:1ac11fb753ca |
comparison
equal
deleted
inserted
replaced
| 1041:07835534d996 | 1042:a3d77353c18a |
|---|---|
| 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 = {}; |