Fix duplicate lover message if the same pair was selected twice
This commit is contained in:
parent
97f19509c1
commit
c94d6a51b8
@ -1052,7 +1052,7 @@ def stop_game(cli, winner = ""):
|
||||
for lover1, llist in var.ORIGINAL_LOVERS.items():
|
||||
for lover2 in llist:
|
||||
# check if already said the pairing
|
||||
if lover2 in done and lover1 in done[lover2]:
|
||||
if (lover1 in done and lover2 in done[lover1]) or (lover2 in done and lover1 in done[lover2]):
|
||||
continue
|
||||
lovers.append("\u0002{0}\u0002/\u0002{1}\u0002".format(lover1, lover2))
|
||||
if lover1 in done:
|
||||
|
Loading…
Reference in New Issue
Block a user