aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_saslauth.lua
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2009-11-19 16:44:37 +0100
committerTobias Markmann <tm@ayena.de>2009-11-19 16:44:37 +0100
commitc52c4021b0c8e890bb7334fdbf00b9550b17e21f (patch)
tree91b7396999c62e8602854eb45d9bae4298fb20ee /plugins/mod_saslauth.lua
parent5ee762728b5acc38906ae3ba5523ded1f0d7005c (diff)
downloadprosody-c52c4021b0c8e890bb7334fdbf00b9550b17e21f.tar.gz
prosody-c52c4021b0c8e890bb7334fdbf00b9550b17e21f.zip
Use new cofig option reading API.
Diffstat (limited to 'plugins/mod_saslauth.lua')
-rw-r--r--plugins/mod_saslauth.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index 2223f056..04e33b29 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -137,7 +137,7 @@ module:add_event_hook("stream-features",
if secure_auth_only and not session.secure then
return;
end
- if config.get(session.host or "*", "core", "anonymous_login") then
+ if module:get_option("anonymous_login") then
session.sasl_handler = new_sasl(session.host, anonymous_authentication_profile);
else
session.sasl_handler = new_sasl(session.host, default_authentication_profile);