aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2025-02-13 16:20:42 +0000
committerMatthew Wild <mwild1@gmail.com>2025-02-13 16:20:42 +0000
commit56dc05885e3dabe7c809f78c13bda476059fff35 (patch)
treea38cfb87d4010dc4939c1bd03169be83c06190d4
parentf8a9943d178a2b4fe415c8b7e02477b6479a0f1a (diff)
downloadprosody-56dc05885e3dabe7c809f78c13bda476059fff35.tar.gz
prosody-56dc05885e3dabe7c809f78c13bda476059fff35.zip
mod_admin_shell: Rename user:setrole to user:set_roles
This is more readable and accessible, and it will only be harder to change after release.
-rw-r--r--plugins/mod_admin_shell.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index 320c9c47..f773cd69 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -1839,10 +1839,10 @@ function def_env.user:role(jid, host)
end
def_env.user.roles = def_env.user.role;
-describe_command [[user:setrole(jid, host, role) - Set primary role of a user (see 'help roles')]]
--- user:setrole("someone@example.com", "example.com", "prosody:admin")
--- user:setrole("someone@example.com", "prosody:admin")
-function def_env.user:setrole(jid, host, new_role)
+describe_command [[user:set_role(jid, host, role) - Set primary role of a user (see 'help roles')]]
+-- user:set_role("someone@example.com", "example.com", "prosody:admin")
+-- user:set_role("someone@example.com", "prosody:admin")
+function def_env.user:set_role(jid, host, new_role)
local username, userhost = jid_split(jid);
if new_role == nil then host, new_role = userhost, host; end
if not prosody.hosts[host] then