aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-11-02 04:29:54 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-11-02 04:29:54 +0500
commit86a10741089db5350ca045ff3057024d170032f7 (patch)
treeaa10fa3d27d83da94d23db395198d337de4196c3 /core
parent9f58b6013a9b70bcc10dfbb556de93fcda4d3131 (diff)
downloadprosody-86a10741089db5350ca045ff3057024d170032f7.tar.gz
prosody-86a10741089db5350ca045ff3057024d170032f7.zip
componentmanager: Removed an unused third parameter from the register_component function.
Diffstat (limited to 'core')
-rw-r--r--core/componentmanager.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/componentmanager.lua b/core/componentmanager.lua
index 6e06ae82..e271898d 100644
--- a/core/componentmanager.lua
+++ b/core/componentmanager.lua
@@ -98,12 +98,12 @@ function create_component(host, component, events)
disallow_s2s = configmanager.get(host, "core", "disallow_s2s"); };
end
-function register_component(host, component, session)
+function register_component(host, component)
if not hosts[host] or (hosts[host].type == 'component' and not hosts[host].connected) then
local old_events = hosts[host] and hosts[host].events;
components[host] = component;
- hosts[host] = session or create_component(host, component, old_events);
+ hosts[host] = create_component(host, component, old_events);
-- Add events object if not already one
if not hosts[host].events then
@@ -121,7 +121,7 @@ function register_component(host, component, session)
modulemanager.load(host, "dialback");
modulemanager.load(host, "tls");
log("debug", "component added: "..host);
- return session or hosts[host];
+ return hosts[host];
else
log("error", "Attempt to set component for existing host: "..host);
end