From 0678e097d61f7ac04369efc1b10127c02072cc49 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Wed, 18 Mar 2015 22:39:23 -0400 Subject: [PATCH] append lovers list to the existing end of game roles list --- modules/wolfgame.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index 803fefd..51e2fea 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -1925,8 +1925,6 @@ def stop_game(cli, winner = "", abort = False): message = "" count = 0 if not abort: - cli.msg(chan, var.break_long_message(roles_msg)) - done = {} lovers = [] for lover1, llist in var.ORIGINAL_LOVERS.items(): @@ -1940,9 +1938,11 @@ def stop_game(cli, winner = "", abort = False): else: done[lover1] = [lover2] if len(lovers) == 1 or len(lovers) == 2: - cli.msg(chan, "The lovers were {0}.".format(" and ".join(lovers))) + roles_msg.append("The lovers were {0}.".format(" and ".join(lovers))) elif len(lovers) > 2: - cli.msg(chan, "The lovers were {0}, and {1}".format(", ".join(lovers[0:-1]), lovers[-1])) + roles_msg.append("The lovers were {0}, and {1}".format(", ".join(lovers[0:-1]), lovers[-1])) + + cli.msg(chan, var.break_long_message(roles_msg)) # Only update if someone actually won, "" indicates everyone died or abnormal game stop if winner != "":