diff options
author | Kim Alvefur <zash@zash.se> | 2015-08-20 13:05:22 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-08-20 13:05:22 +0200 |
commit | 80c7d5155e9c468d86f3b268e90303decd7d1827 (patch) | |
tree | 103fd7d9396b60b9f76071a009c54d3ca9d35744 /util/sasl/external.lua | |
parent | f1313996a2db339fe76f269353cc911c68316f30 (diff) | |
parent | c5e4af96d8bd9de7a96d3dc1eff5b8d1eecbfdaf (diff) | |
download | prosody-80c7d5155e9c468d86f3b268e90303decd7d1827.tar.gz prosody-80c7d5155e9c468d86f3b268e90303decd7d1827.zip |
Merge 0.10->trunk
Diffstat (limited to 'util/sasl/external.lua')
-rw-r--r-- | util/sasl/external.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/util/sasl/external.lua b/util/sasl/external.lua index 4c5c4343..5ba90190 100644 --- a/util/sasl/external.lua +++ b/util/sasl/external.lua @@ -1,6 +1,6 @@ local saslprep = require "util.encodings".stringprep.saslprep; -module "sasl.external" +local _ENV = nil; local function external(self, message) message = saslprep(message); @@ -18,8 +18,10 @@ local function external(self, message) return "success"; end -function init(registerMechanism) +local function init(registerMechanism) registerMechanism("EXTERNAL", {"external"}, external); end -return _M; +return { + init = init; +} |