# HG changeset patch # User Matthew Wild # Date 1340035066 -3600 # Node ID 630cb694b3642c33d06fc5a68d928bd39d35a3e6 # Parent 5211c11dd865633708e92afbdce9393eaab2cf7d util.sasl: Make registerMechanism a public function diff -r 5211c11dd865 -r 630cb694b364 util/sasl.lua --- 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.");