Network: remove deprecated IgnoreGame tag

This commit is contained in:
Fabian Dill
2022-12-03 04:22:58 +01:00
committed by Fabian Dill
parent 32b8f9f9f3
commit ffc000ec91
3 changed files with 2 additions and 4 deletions

View File

@@ -1541,8 +1541,7 @@ async def process_client_cmd(ctx: Context, client: Client, args: dict):
else:
team, slot = ctx.connect_names[args['name']]
game = ctx.games[slot]
ignore_game = "IgnoreGame" in args["tags"] or ( # IgnoreGame is deprecated. TODO: remove after 0.3.3?
("TextOnly" in args["tags"] or "Tracker" in args["tags"]) and not args.get("game"))
ignore_game = ("TextOnly" in args["tags"] or "Tracker" in args["tags"]) and not args.get("game")
if not ignore_game and args['game'] != game:
errors.add('InvalidGame')
minver = min_client_version if ignore_game else ctx.minimum_client_versions[slot]