diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-06-18 16:57:46 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-06-18 16:57:46 +0100 |
commit | 9d379a1dae9a6b46a4e11a13ccdcece4f8c60679 (patch) | |
tree | bfd45702872baf7eacf1b1ad78756426ddc18ab8 /util | |
parent | 49d3586dc142ca99b3f8b95584b8375fd7b5ab7c (diff) | |
download | prosody-9d379a1dae9a6b46a4e11a13ccdcece4f8c60679.tar.gz prosody-9d379a1dae9a6b46a4e11a13ccdcece4f8c60679.zip |
util.sasl: Make registerMechanism a public function
Diffstat (limited to 'util')
-rw-r--r-- | util/sasl.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sasl.lua b/util/sasl.lua index 17d10b80..afb3861b 100644 --- a/util/sasl.lua +++ b/util/sasl.lua @@ -35,7 +35,7 @@ local mechanisms = {}; local backend_mechanism = {}; -- register a new SASL mechanims -local function registerMechanism(name, backends, f) +function registerMechanism(name, backends, f) assert(type(name) == "string", "Parameter name MUST be a string."); assert(type(backends) == "string" or type(backends) == "table", "Parameter backends MUST be either a string or a table."); assert(type(f) == "function", "Parameter f MUST be a function."); |