Core: make player name case-insensitive

This commit is contained in:
black-sliver
2022-10-30 15:49:12 +01:00
parent 1bb99d391d
commit 87f4a97f1e
2 changed files with 7 additions and 6 deletions

View File

@@ -1804,6 +1804,7 @@ class ServerCommandProcessor(CommonCommandProcessor):
def resolve_player(self, input_name: str) -> typing.Optional[typing.Tuple[int, int, str]]:
""" returns (team, slot, player name) """
# TODO: clean up once we disallow multidata < 0.3.6, which has CI unique names
# first match case
for (team, slot), name in self.ctx.player_names.items():
if name == input_name: