diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-04-22 21:32:23 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-04-22 21:32:23 +0100 |
commit | ca9a9eb85ebb918983c845813c22c0e6d2464aa6 (patch) | |
tree | 680b1c655c3a4b97e14f5dd996a303ff28e122cd /plugins/mod_component.lua | |
parent | a54da72215f3216f3ae28846604bba20e483b831 (diff) | |
download | prosody-ca9a9eb85ebb918983c845813c22c0e6d2464aa6.tar.gz prosody-ca9a9eb85ebb918983c845813c22c0e6d2464aa6.zip |
mod_*: Fix a load of global accesses
Diffstat (limited to 'plugins/mod_component.lua')
-rw-r--r-- | plugins/mod_component.lua | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua index bbd49c5e..e5ea47a2 100644 --- a/plugins/mod_component.lua +++ b/plugins/mod_component.lua @@ -10,14 +10,19 @@ if module:get_host_type() ~= "component" then error("Don't load mod_component manually, it should be for a component, please see http://prosody.im/doc/components", 0); end +local hosts = _G.hosts; + local t_concat = table.concat; +local lxp = require "lxp"; +local logger = require "util.logger"; +local config = require "core.configmanager"; local connlisteners = require "net.connlisteners"; local cm_register_component = require "core.componentmanager".register_component; local cm_deregister_component = require "core.componentmanager".deregister_component; local uuid_gen = require "util.uuid".generate; local sha1 = require "util.hashes".sha1; -local st = stanza; +local st = require "util.stanza"; local init_xmlhandlers = require "core.xmlhandlers"; local sessions = {}; @@ -211,8 +216,8 @@ connlisteners.register('component', component_listener); module:add_event_hook("server-started", function () - if net_activate_ports then - net_activate_ports("component", "component", {5437}, "tcp"); + if _G.net_activate_ports then + _G.net_activate_ports("component", "component", {5437}, "tcp"); else error("No net_activate_ports: Using an incompatible version of Prosody?"); end |