diff options
author | Kim Alvefur <zash@zash.se> | 2023-03-26 16:51:33 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-03-26 16:51:33 +0200 |
commit | e53ef27a1c6e620cc79bb8a4ef0a12dbe9cd0eb7 (patch) | |
tree | d096992923b4871f700b045944a8310aade2b7b1 | |
parent | 8720067f241ebc2a23b4d5ab9fb68beba9e61d53 (diff) | |
download | prosody-e53ef27a1c6e620cc79bb8a4ef0a12dbe9cd0eb7.tar.gz prosody-e53ef27a1c6e620cc79bb8a4ef0a12dbe9cd0eb7.zip |
core.usermanager: Correct formatting of not implemented error
Spaces, no hyphen, apparently.
-rw-r--r-- | core/usermanager.lua | 8 | ||||
-rw-r--r-- | plugins/mod_admin_shell.lua | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/core/usermanager.lua b/core/usermanager.lua index 2235b9ed..6db06e5d 100644 --- a/core/usermanager.lua +++ b/core/usermanager.lua @@ -116,7 +116,7 @@ end local function get_account_info(username, host) local method = hosts[host].users.get_account_info; - if not method then return nil, "method-not-supported"; end + if not method then return nil, "method not supported"; end return method(username); end @@ -144,7 +144,7 @@ local function user_is_enabled(username, host) local info, err = get_account_info(username, host); if info and info.enabled ~= nil then return info.enabled; - elseif err ~= "method-not-implemented" then + elseif err ~= "method not implemented" then -- Storage issues etetc return info, err; end @@ -155,7 +155,7 @@ end local function enable_user(username, host) local method = hosts[host].users.enable; - if not method then return nil, "method-not-supported"; end + if not method then return nil, "method not supported"; end local ret, err = method(username); if ret then prosody.events.fire_event("user-enabled", { username = username, host = host }); @@ -165,7 +165,7 @@ end local function disable_user(username, host) local method = hosts[host].users.disable; - if not method then return nil, "method-not-supported"; end + if not method then return nil, "method not supported"; end local ret, err = method(username); if ret then prosody.events.fire_event("user-disabled", { username = username, host = host }); diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index c652fa96..9268b372 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -1535,7 +1535,7 @@ function def_env.user:create(jid, password, role) end local ok, err = um.enable_user(username, host); - if not ok and err ~= "method-not-implemented" then + if not ok and err ~= "method not implemented" then return nil, "Could not enable user: "..err; end end |