mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
util.sasl: Make registerMechanism a public function
This commit is contained in:
parent
49d3586dc1
commit
9d379a1dae
1 changed files with 1 additions and 1 deletions
|
@ -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.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue