Software /
code /
prosody
Changeset
2014:913c0845ef9a
mod_saslauth: Fixed access of globals.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 18 Oct 2009 18:50:35 +0500 |
parents | 2013:0bbbc9042361 |
children | 2015:2140c994671e |
files | plugins/mod_saslauth.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua Sun Oct 18 18:48:34 2009 +0500 +++ b/plugins/mod_saslauth.lua Sun Oct 18 18:50:35 2009 +0500 @@ -83,7 +83,7 @@ return response; end elseif mechanism == "DIGEST-MD5" then - function func(x) return x; end + local function func(x) return x; end local node, domain, realm, decoder = ...; local prepped_node = nodeprep(node); if not prepped_node then @@ -153,7 +153,7 @@ if config.get(session.host or "*", "core", "anonymous_login") then features:tag("mechanism"):text("ANONYMOUS"):up(); else - mechanisms = usermanager_get_supported_methods(session.host or "*"); + local mechanisms = usermanager_get_supported_methods(session.host or "*"); for k, v in pairs(mechanisms) do features:tag("mechanism"):text(k):up(); end