diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-01-24 05:36:25 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-01-24 05:36:25 +0500 |
commit | feb814d958aa93d546ff301a058b023a65a70535 (patch) | |
tree | 397c7334b3fa4afe94fbf6429c17124adbe374cf | |
parent | 8bcd704830d8097c932e2a55b060f73fd5edd80d (diff) | |
download | prosody-feb814d958aa93d546ff301a058b023a65a70535.tar.gz prosody-feb814d958aa93d546ff301a058b023a65a70535.zip |
mod_component: Cleaned up unused variables.
-rw-r--r-- | plugins/mod_component.lua | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua index 4201bb19..d9783b0c 100644 --- a/plugins/mod_component.lua +++ b/plugins/mod_component.lua @@ -14,25 +14,14 @@ 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 = require "util.stanza"; -local init_xmlhandlers = require "core.xmlhandlers"; - -local sessions = {}; local log = module._log; -local component_listener = { default_port = 5347; default_mode = "*a"; default_interface = config.get("*", "core", "component_interface") or "127.0.0.1" }; - -local xmlns_component = 'jabber:component:accept'; - --- Handle authentication attempts by components function handle_component_auth(session, stanza) log("info", "Handling component auth"); @@ -80,4 +69,4 @@ function handle_component_auth(session, stanza) session.send(st.stanza("handshake")); end -module:add_handler("component", "handshake", xmlns_component, handle_component_auth); +module:add_handler("component", "handshake", "jabber:component:accept", handle_component_auth); |