aboutsummaryrefslogtreecommitdiffstats
path: root/core/usermanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-06-29 19:11:18 +0100
committerMatthew Wild <mwild1@gmail.com>2010-06-29 19:11:18 +0100
commitaa68dc887d1ee2480bcebeed9170f0d696134776 (patch)
treeb8decdea3b411cecf5e38d975f10de8808a40552 /core/usermanager.lua
parent0daa424f952bd677068f2a8815cf6c0d0232d7f1 (diff)
downloadprosody-aa68dc887d1ee2480bcebeed9170f0d696134776.tar.gz
prosody-aa68dc887d1ee2480bcebeed9170f0d696134776.zip
usermanager: Expose host_handler() as initialize_host()
Diffstat (limited to 'core/usermanager.lua')
-rw-r--r--core/usermanager.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/usermanager.lua b/core/usermanager.lua
index a369b9e0..dd17128c 100644
--- a/core/usermanager.lua
+++ b/core/usermanager.lua
@@ -32,7 +32,7 @@ function new_null_provider()
return setmetatable({name = "null"}, { __index = function() return dummy; end });
end
-local function host_handler(host)
+function initialize_host(host)
local host_session = hosts[host];
host_session.events.add_handler("item-added/auth-provider", function (event)
local provider = event.item;
@@ -56,8 +56,8 @@ local function host_handler(host)
modulemanager.load(host, "auth_"..auth_provider);
end
end;
-prosody.events.add_handler("host-activated", host_handler, 100);
-prosody.events.add_handler("component-activated", host_handler, 100);
+prosody.events.add_handler("host-activated", initialize_host, 100);
+prosody.events.add_handler("component-activated", initialize_host, 100);
function is_cyrus(host) return config.get(host, "core", "sasl_backend") == "cyrus"; end