aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorPaul Aurich <paul@darkrain42.org>2010-01-03 09:51:01 -0800
committerPaul Aurich <paul@darkrain42.org>2010-01-03 09:51:01 -0800
commitbaafc1c47cfcb62a9e452cc9ff20589fd567df50 (patch)
treed89b7872a8235e77013129f800055c53aa324a98 /plugins
parent90edd26fd4f7abe9578e4950c610b9004d21bfb8 (diff)
downloadprosody-baafc1c47cfcb62a9e452cc9ff20589fd567df50.tar.gz
prosody-baafc1c47cfcb62a9e452cc9ff20589fd567df50.zip
mod_saslauth: Use module:get_option()
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_saslauth.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index e64eff01..283f5e1d 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -25,8 +25,8 @@ local jid_split = require "util.jid".split
local md5 = require "util.hashes".md5;
local config = require "core.configmanager";
-local secure_auth_only = config.get(module:get_host(), "core", "c2s_require_encryption") or config.get(module:get_host(), "core", "require_encryption");
-local sasl_backend = config.get(module:get_host(), "core", "sasl_backend") or "builtin";
+local secure_auth_only = module:get_option("c2s_require_encryption") or module:get_option("require_encryption");
+local sasl_backend = module:get_option("sasl_backend") or "builtin";
local log = module._log;
@@ -38,7 +38,7 @@ local new_sasl
if sasl_backend == "cyrus" then
cyrus_new = require "util.sasl_cyrus".new;
new_sasl = function(realm)
- return cyrus_new(realm, config.get(module:get_host(), "core", "cyrus_service_name") or "xmpp")
+ return cyrus_new(realm, module:get_option("cyrus_service_name") or "xmpp")
end
else
if sasl_backend ~= "backend" then log("warning", "Unknown SASL backend %s", sasl_backend) end;