diff options
| author | Cerapter <cerap@protonmail.com> | 2018-09-15 02:33:18 +0200 |
|---|---|---|
| committer | Cerapter <cerap@protonmail.com> | 2018-09-15 02:33:18 +0200 |
| commit | fcd8f5b5abb2329aded120007319d581908c8a69 (patch) | |
| tree | 5a3530435821555b51555768725bde1e267bd9a0 /server/tsuserver.py | |
| parent | 86f91ba3e862b683becbc2d35539bc06a636c925 (diff) | |
Areas can now be spectatable, too.
- Makes it so that people can join, but can't type IC unless invited.
- The CM can set it with `/area_spectate`.
Diffstat (limited to 'server/tsuserver.py')
| -rw-r--r-- | server/tsuserver.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tsuserver.py b/server/tsuserver.py index 8f5bf859..7ef4f5e0 100644 --- a/server/tsuserver.py +++ b/server/tsuserver.py @@ -268,7 +268,7 @@ class TsuServer3: CM: ARUP#2##<area1_cm: string>##<area2_cm: string>#... Lockedness: - ARUP#3##<area1_l: bool>##<area2_l: bool>#... + ARUP#3##<area1_l: string>##<area2_l: string>#... """ if len(args) < 2: @@ -277,13 +277,13 @@ class TsuServer3: if args[0] not in (0,1,2,3): return - if args[0] in (0, 3): + if args[0] == 0: for part_arg in args[1:]: try: sanitised = int(part_arg) except: return - elif args[0] in (1, 2): + elif args[0] in (1, 2, 3): for part_arg in args[1:]: try: sanitised = str(part_arg) |
