From a08b254077288232058af09de9bac86f6a6865de Mon Sep 17 00:00:00 2001 From: Cerapter Date: Thu, 6 Sep 2018 22:29:23 +0200 Subject: [PATCH] Added the ability for mods and CMs to force non-interrupting pres in areas. --- server/commands.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/server/commands.py b/server/commands.py index 6f2beb0..125ca80 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: