Software /
code /
prosody
Diff
plugins/mod_component.lua @ 2495:9c32f469b82c
mod_component: Cleaned up unused variables.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 24 Jan 2010 05:36:25 +0500 |
parent | 2490:6eee75fb3159 |
child | 2925:692b3c6c5bd2 |
line wrap: on
line diff
--- a/plugins/mod_component.lua Sun Jan 24 05:35:21 2010 +0500 +++ b/plugins/mod_component.lua Sun Jan 24 05:36:25 2010 +0500 @@ -14,25 +14,14 @@ 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 @@ 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);