Software /
code /
prosody
Changeset
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 | 4928:5211c11dd865 |
children | 4934:5a6a85719b7b |
files | util/sasl.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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.");