MultiServer: Fix `/alias <name>` not removing aliases. (#3186)
This commit is contained in:
parent
6aafa6ff04
commit
49c0268a84
|
@ -1905,7 +1905,7 @@ class ServerCommandProcessor(CommonCommandProcessor):
|
||||||
@mark_raw
|
@mark_raw
|
||||||
def _cmd_alias(self, player_name_then_alias_name):
|
def _cmd_alias(self, player_name_then_alias_name):
|
||||||
"""Set a player's alias, by listing their base name and then their intended alias."""
|
"""Set a player's alias, by listing their base name and then their intended alias."""
|
||||||
player_name, alias_name = player_name_then_alias_name.split(" ", 1)
|
player_name, _, alias_name = player_name_then_alias_name.partition(" ")
|
||||||
player_name, usable, response = get_intended_text(player_name, self.ctx.player_names.values())
|
player_name, usable, response = get_intended_text(player_name, self.ctx.player_names.values())
|
||||||
if usable:
|
if usable:
|
||||||
for (team, slot), name in self.ctx.player_names.items():
|
for (team, slot), name in self.ctx.player_names.items():
|
||||||
|
|
Loading…
Reference in New Issue