Software /
code /
prosody
Diff
core/usermanager.lua @ 3991:2b86d7705f4e
usermanager: Change dummy provider method to return an error string also (method not implemented)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 04 Jan 2011 17:10:56 +0000 |
parent | 3982:a20a41e512f8 |
child | 3992:73075b004e77 |
line wrap: on
line diff
--- 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)