aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl/external.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-08-20 13:05:22 +0200
committerKim Alvefur <zash@zash.se>2015-08-20 13:05:22 +0200
commit6ef7c4d80892f486d71e660b054bdfdb993c8528 (patch)
tree103fd7d9396b60b9f76071a009c54d3ca9d35744 /util/sasl/external.lua
parenta9029bd099734436154fc4e794d3b958e54d1943 (diff)
parentd32f36b2817739d7f8d5f1208a3009b7be379562 (diff)
downloadprosody-6ef7c4d80892f486d71e660b054bdfdb993c8528.tar.gz
prosody-6ef7c4d80892f486d71e660b054bdfdb993c8528.zip
Merge 0.10->trunk
Diffstat (limited to 'util/sasl/external.lua')
-rw-r--r--util/sasl/external.lua8
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;
+}