diff options
| author | Cerapter <cerap@protonmail.com> | 2018-10-23 16:34:39 +0200 |
|---|---|---|
| committer | Cerapter <cerap@protonmail.com> | 2018-10-23 16:34:39 +0200 |
| commit | 962289793d97357b69e228a0b52737681d2ea0b0 (patch) | |
| tree | a2f825d8b5b6236d1dc404960f33fb3ffbf84fc4 /server/commands.py | |
| parent | de8badc9a6e74ca29cbc04ab5438d6eed2eb8984 (diff) | |
Added support for the stenographer role in case alerts.
Diffstat (limited to 'server/commands.py')
| -rw-r--r-- | server/commands.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/server/commands.py b/server/commands.py index 49fd979..d02eff2 100644 --- a/server/commands.py +++ b/server/commands.py @@ -780,6 +780,7 @@ def ooc_cmd_setcase(client, arg): client.casing_pro = args[3] == "1" client.casing_jud = args[4] == "1" client.casing_jur = args[5] == "1" + client.casing_steno = args[6] == "1" def ooc_cmd_anncase(client, arg): if client in client.area.owners: @@ -791,7 +792,7 @@ def ooc_cmd_anncase(client, arg): elif len(args) == 1: raise ArgumentError('You should probably announce the case to at least one person.') else: - if not args[1] == "1" and not args[2] == "1" and not args[3] == "1" and not args[4] == "1": + if not args[1] == "1" and not args[2] == "1" and not args[3] == "1" and not args[4] == "1" and not args[5] == "1": raise ArgumentError('You should probably announce the case to at least one person.') msg = '=== Case Announcement ===\r\n{} [{}] is hosting {}, looking for '.format(client.get_char_name(), client.id, args[0]) @@ -805,14 +806,16 @@ def ooc_cmd_anncase(client, arg): lookingfor.append("judge") if args[4] == "1": lookingfor.append("juror") + if args[5] == "1": + lookingfor.append("stenographer") msg = msg + ', '.join(lookingfor) + '.\r\n==================' - client.server.send_all_cmd_pred('CASEA', msg, args[1], args[2], args[3], args[4], '1') + client.server.send_all_cmd_pred('CASEA', msg, args[1], args[2], args[3], args[4], args[5], '1') client.set_case_call_delay() - logger.log_server('[{}][{}][CASE_ANNOUNCEMENT]{}, DEF: {}, PRO: {}, JUD: {}, JUR: {}.'.format(client.area.abbreviation, client.get_char_name(), args[0], args[1], args[2], args[3], args[4]), client) + logger.log_server('[{}][{}][CASE_ANNOUNCEMENT]{}, DEF: {}, PRO: {}, JUD: {}, JUR: {}, STENO: {}.'.format(client.area.abbreviation, client.get_char_name(), args[0], args[1], args[2], args[3], args[4], args[5]), client) else: raise ClientError('You cannot announce a case in an area where you are not a CM!') |
