Comparison

plugins/mod_admin_shell.lua @ 12670:4a00c8811ea8

mod_admin_shell: Update help for user:create to reflect singular role argument
author Kim Alvefur <zash@zash.se>
date Thu, 18 Aug 2022 18:10:18 +0200
parent 12668:5d85de8b0723
child 12672:c8f59ce7d3cf
comparison
equal deleted inserted replaced
12669:aed38948791f 12670:4a00c8811ea8
266 elseif section == "host" then 266 elseif section == "host" then
267 print [[host:activate(hostname) - Activates the specified host]] 267 print [[host:activate(hostname) - Activates the specified host]]
268 print [[host:deactivate(hostname) - Disconnects all clients on this host and deactivates]] 268 print [[host:deactivate(hostname) - Disconnects all clients on this host and deactivates]]
269 print [[host:list() - List the currently-activated hosts]] 269 print [[host:list() - List the currently-activated hosts]]
270 elseif section == "user" then 270 elseif section == "user" then
271 print [[user:create(jid, password, roles) - Create the specified user account]] 271 print [[user:create(jid, password, role) - Create the specified user account]]
272 print [[user:password(jid, password) - Set the password for the specified user account]] 272 print [[user:password(jid, password) - Set the password for the specified user account]]
273 print [[user:roles(jid, host) - Show current roles for an user]] 273 print [[user:roles(jid, host) - Show current roles for an user]]
274 print [[user:setrole(jid, host, role) - Set primary role of a user (see 'help roles')]] 274 print [[user:setrole(jid, host, role) - Set primary role of a user (see 'help roles')]]
275 print [[user:addrole(jid, host, role) - Add a secondary role to a user]] 275 print [[user:addrole(jid, host, role) - Add a secondary role to a user]]
276 print [[user:delrole(jid, host, role) - Remove a secondary role from a user]] 276 print [[user:delrole(jid, host, role) - Remove a secondary role from a user]]