MultiServer: fix IgnoreGame missing 'not'

This commit is contained in:
Fabian Dill 2021-09-17 04:35:38 +02:00
parent 4e1f1551ea
commit b780257098
1 changed files with 1 additions and 1 deletions

View File

@ -1096,7 +1096,7 @@ async def process_client_cmd(ctx: Context, client: Client, args: dict):
else:
team, slot = ctx.connect_names[args['name']]
game = ctx.games[slot]
if "IgnoreGame" in args["tags"] and args['game'] != game:
if "IgnoreGame" not in args["tags"] and args['game'] != game:
errors.add('InvalidGame')
# this can only ever be 0 or 1 elements
clients = [c for c in ctx.endpoints if c.auth and c.slot == slot and c.team == team]