A commit activating the auto_help for @chperm.
This commit is contained in:
parent
e05eabe5ef
commit
fc35cffb98
1 changed files with 4 additions and 4 deletions
|
|
@ -257,17 +257,17 @@ GLOBAL_CMD_TABLE.add_command("@shutdown", cmd_shutdown,
|
||||||
|
|
||||||
def cmd_chperm(command):
|
def cmd_chperm(command):
|
||||||
"""@chperm
|
"""@chperm
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
@chperm[/switch] [<user>] = [<permission>]
|
@chperm[/switch] [<user>] = [<permission>]
|
||||||
|
|
||||||
Switches:
|
Switches:
|
||||||
add : add a permission from <user>
|
add : add a permission from <user>
|
||||||
del : delete a permission from <user>
|
del : delete a permission from <user>
|
||||||
list : list all permissions set on <user>
|
list : list all permissions, or those set on <user>
|
||||||
|
|
||||||
@chperm (change permission) sets/clears individual permission bits on a user.
|
@chperm (change permission) sets/clears individual permission bits on a user.
|
||||||
Use /list without any arguments to see all available permissions.
|
Use /list without any arguments to see all available permissions or those
|
||||||
|
defined on the <user> argument.
|
||||||
"""
|
"""
|
||||||
source_object = command.source_object
|
source_object = command.source_object
|
||||||
args = command.command_argument
|
args = command.command_argument
|
||||||
|
|
@ -376,5 +376,5 @@ def cmd_chperm(command):
|
||||||
obj.emit_to("%s removed your permission '%s'." % (source_object.get_name(show_dbref=False,no_ansi=True),
|
obj.emit_to("%s removed your permission '%s'." % (source_object.get_name(show_dbref=False,no_ansi=True),
|
||||||
permission.name))
|
permission.name))
|
||||||
GLOBAL_CMD_TABLE.add_command("@chperm", cmd_chperm,
|
GLOBAL_CMD_TABLE.add_command("@chperm", cmd_chperm,
|
||||||
priv_tuple=("auth.change_permission",))
|
priv_tuple=("auth.change_permission",), auto_help=True, staff_help=True)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue