Change a string cocatenation to use .join instead.

This commit is contained in:
Griatch 2017-01-30 00:24:51 +01:00
parent 13f919fc63
commit dd07ea294b

View file

@ -295,9 +295,9 @@ class CmdDelPlayer(COMMAND_DEFAULT_CLASS):
return
if len(players) > 1:
string = "There were multiple matches:"
for player in players:
string += "\n %s %s" % (player.id, player.key)
string = "There were multiple matches:\n"
string += "\n".join(" %s %s" % (player.id, player.key) for player in players)
self.msg(string)
return
# one single match