mirror of
https://github.com/evennia/evennia.git
synced 2026-03-25 09:16:32 +01:00
Change a string cocatenation to use .join instead.
This commit is contained in:
parent
13f919fc63
commit
dd07ea294b
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue