Mercurial > prosody-hg
diff util/sasl.lua @ 4933:630cb694b364
util.sasl: Make registerMechanism a public function
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 18 Jun 2012 16:57:46 +0100 |
| parents | 671a660b20f9 |
| children | e879b53e9df8 |
line wrap: on
line diff
--- a/util/sasl.lua Tue Jun 12 18:29:58 2012 +0200 +++ b/util/sasl.lua Mon Jun 18 16:57:46 2012 +0100 @@ -35,7 +35,7 @@ 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.");
