diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-11-12 23:35:02 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-11-12 23:35:02 +0500 |
commit | 3501f4f0c9b95e1061c1b6f94ab46b3bbebb05e3 (patch) | |
tree | cd244049297dca6fdf8e5295fe8935c79179de0f /plugins | |
parent | 6bc1c5d24a9ac302b07f54bf1f3588ffcee595d2 (diff) | |
download | prosody-3501f4f0c9b95e1061c1b6f94ab46b3bbebb05e3.tar.gz prosody-3501f4f0c9b95e1061c1b6f94ab46b3bbebb05e3.zip |
mod_component: Use module:get_option() instead of configmanager.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_component.lua | 3 |
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"); |