mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
MultiServer: Fix /alias <name>
not removing aliases. (#3186)
This commit is contained in:
@@ -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():
|
||||||
|
Reference in New Issue
Block a user