aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl/external.lua
diff options
context:
space:
mode:
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;
+}