From 58add40a898b5aa2d1f4ab746924c12cfeea2533 Mon Sep 17 00:00:00 2001
From: Cloud <sylvain.maret@hotmail.fr>
Date: Tue, 28 May 2019 10:31:38 +0200
Subject: [PATCH]  try to fix thief

---
 putsch.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/putsch.py b/putsch.py
index d9d00f4..f9592df 100644
--- a/putsch.py
+++ b/putsch.py
@@ -459,7 +459,7 @@ class Boooob(ircbot.SingleServerIRCBot):
                     serv.privmsg("#lg_putsch", "J'appelle le cupidon... S'il existe !")
                     self.phase2trig = 0
 
-                if self.voleur != "" and self.phase2 == 0 and self.voleurtrig == 1:
+                if self.voleur != "" and self.phase2 == 0 and self.voleurtrig == 1 and len(self.choix) == 0:
                     self.choix.append(self.cartes.pop(rand.randint(0, len(self.cartes) -1)))
                     self.choix.append(self.cartes.pop(rand.randint(0, len(self.cartes) - 1))) # on crée une liste de deux choix
                     serv.privmsg(self.voleur, "Tu es le voleur, tes choix sont : " +
-- 
GitLab