File: restrictcnf.dst

package info (click to toggle)
pennmush 1.8.0p4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,068 kB
  • ctags: 6,319
  • sloc: ansic: 68,221; sh: 7,056; perl: 1,150; makefile: 284
file content (95 lines) | stat: -rw-r--r-- 3,463 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#
# Commands to restrict
# Syntax: restrict_command <command> <restriction> [" <error message>]
#         restrict_function <function> <restriction>
# <restriction> is a space separated list that may include:
#	nobody		Totally disable the command
#	nogagged	Gagged players can't use it
#	nofixed		Fixed players can't use it
#	noguest		Guests can't use it
#	noplayer	Player objects can't use it (things, rooms, exits may. Command only)
#	admin		Must be roy or wiz to use it
#	wizard		Must be wiz to use it
#	god		Must be god to use it
#	logname		When func/cmd is used, log its name and user
#	logargs		When func/cmd is used, log its name, args, and user
#       <flag>		Any flag that must be present to use it (Command only)
#       <power>		Any power that must be present to use it (Command only)
#	!<restriction>	The opposite of a restriction (Command only).
#       nosidefx        The side-effect version of a function won't work (Function only).
#
# If <error message> is given to a restrict_command, it is sent to the player
# instead of a more generic, typically useless error message.
#
# Command restrictions typically also apply to side-effect functions that
# emulate the command.

# Don't let guests mess with the database
# (This replaces the HARSH_GUEST compile-time define)
# The "ATTRIB_SET" command controls the setting of attributes with
#  @attr obj=value or &attr obj=value
restrict_command @set noguest
restrict_command ATTRIB_SET noguest
restrict_command @chown noguest
restrict_command @chzone noguest
restrict_command @cpattr noguest
restrict_command @mvattr noguest
restrict_command @edit noguest
restrict_command @gedit noguest
restrict_command @parent noguest
restrict_command @wipe noguest
restrict_command @unlink noguest
restrict_command @link noguest
restrict_command @lock noguest
restrict_command @unlock noguest
restrict_command @create noguest
restrict_command @dig noguest
restrict_command @open noguest

# @power is traditionally logged
restrict_command @power logargs

# Some additional protection against spam attacks by guests
#restrict_command @dolist noguest
#restrict_function repeat noguest
#restrict_function iter noguest
#restrict_function map noguest
#restrict_function fold noguest

# Don't allow kill (slay still works)
#restrict_command kill nobody

# Uncomment to allow only admin or @powered builders to build
#restrict_command @open admin builder " You need the builder power to do that.
#restrict_command @dig admin builder " You need the builder power to do that.

# Uncomment to disallow them to create objects
#restrict_command @create admin builder " You need the builder power to do that.

# Used to be player_locate
#restrict_command @whereis nobody

# Used to be hate_dest
restrict_command @destroy noplayer " Use @recycle instead

# Used to be cemit_power
#restrict_command @cemit admin cemit " You can't @cemit without cemit @power

# Turn off ansi().
#restrict_function ansi nobody

# And some of the more dangerous side-effect functions.
#restrict_function set nobody
#restrict_function wipe nobody
#restrict_function create nobody
#restrict_function clone nobody
#restrict_function tel nobody

# If you turn this on, players who try to use functions in place
# of commands (e.g. $foo: [pemit(%#,blah)] will get error messages.
# Disabled by default for backward compatibility.
restrict_command warn_on_missing nobody

# We add a dummy here to make updating easier
restrict_function lstats noguest