# HG changeset patch # User Matthew Wild # Date 1294161056 0 # Node ID dac4a1b028a4588436cce0fdaca1e2deca942ab0 # Parent 9106dcd4815ece2e33f7b97a88b318d7d7880287 usermanager: Change dummy provider method to return an error string also (method not implemented) diff -r 9106dcd4815e -r dac4a1b028a4 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)