diff options
| author | Cerapter <cerap@protonmail.com> | 2018-09-06 22:29:23 +0200 |
|---|---|---|
| committer | Cerapter <cerap@protonmail.com> | 2018-09-06 22:29:23 +0200 |
| commit | a08b254077288232058af09de9bac86f6a6865de (patch) | |
| tree | dee2e752c2489dbce7ba3d8d48fa8ae4fdd71527 | |
| parent | d0503eeb6ee783e571b7369edbdcc6710bee7ee7 (diff) | |
Added the ability for mods and CMs to force non-interrupting pres in areas.
| -rw-r--r-- | server/commands.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/server/commands.py b/server/commands.py index 6f2beb03..125ca809 100644 --- a/server/commands.py +++ b/server/commands.py @@ -100,6 +100,17 @@ def ooc_cmd_allow_blankposting(client, arg): client.area.send_host_message('A mod has set blankposting in the area to {}.'.format(answer[client.area.blankposting_allowed])) return +def ooc_cmd_force_nonint_pres(client, arg): + if not client.is_mod and not client.is_cm: + raise ClientError('You must be authorized to do that.') + client.area.non_int_pres_only = not client.area.non_int_pres_only + answer = {True: 'non-interrupting only', False: 'non-interrupting or interrupting as you choose'} + if client.is_cm: + client.area.send_host_message('The CM has set pres in the area to be {}.'.format(answer[client.area.non_int_pres_only])) + else: + client.area.send_host_message('A mod has set pres in the area to be {}.'.format(answer[client.area.non_int_pres_only])) + return + def ooc_cmd_roll(client, arg): roll_max = 11037 if len(arg) != 0: |
