# HG changeset patch # User Matthew Wild # Date 1294161056 0 # Node ID 2b86d7705f4eb92ba3125a0a6320f2b2406eb5c1 # Parent 764922062c380f80b00550332d37b0fb72e5dffa usermanager: Change dummy provider method to return an error string also (method not implemented) diff -r 764922062c38 -r 2b86d7705f4e core/usermanager.lua --- a/core/usermanager.lua Tue Jan 04 16:37:57 2011 +0000 +++ b/core/usermanager.lua Tue Jan 04 17:10:56 2011 +0000 @@ -24,9 +24,11 @@ module "usermanager" function new_null_provider() - local function dummy() end; + local function dummy() return nil, "method not implemented"; end; local function dummy_get_sasl_handler() return sasl_new(nil, {}); end - return setmetatable({name = "null", get_sasl_handler = dummy_get_sasl_handler}, { __index = function() return dummy; end }); + return setmetatable({name = "null", get_sasl_handler = dummy_get_sasl_handler}, { + __index = function(self, method) return dummy; end + }); end function initialize_host(host)