aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-11-12 23:35:02 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-11-12 23:35:02 +0500
commit3501f4f0c9b95e1061c1b6f94ab46b3bbebb05e3 (patch)
treecd244049297dca6fdf8e5295fe8935c79179de0f
parent6bc1c5d24a9ac302b07f54bf1f3588ffcee595d2 (diff)
downloadprosody-3501f4f0c9b95e1061c1b6f94ab46b3bbebb05e3.tar.gz
prosody-3501f4f0c9b95e1061c1b6f94ab46b3bbebb05e3.zip
mod_component: Use module:get_option() instead of configmanager.
-rw-r--r--plugins/mod_component.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua
index b2c571d3..a5192e8c 100644
--- a/plugins/mod_component.lua
+++ b/plugins/mod_component.lua
@@ -14,7 +14,6 @@ local hosts = _G.hosts;
local t_concat = table.concat;
-local config = require "core.configmanager";
local sha1 = require "util.hashes".sha1;
local st = require "util.stanza";
@@ -68,7 +67,7 @@ function handle_component_auth(event)
return true;
end
- local secret = config.get(session.host, "core", "component_secret");
+ local secret = module:get_option("component_secret");
if not secret then
(session.log or log)("warn", "Component attempted to identify as %s, but component_secret is not set", session.host);
session:close("not-authorized");