Software /
code /
prosody
Changeset
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 |
parents | 3990:764922062c38 |
children | 3992:73075b004e77 |
files | core/usermanager.lua |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
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)