diff --git a/putsch.py b/putsch.py index 4093385e7a1f183dedf8000d31de2859780a0e5f..dafa5bf58af4eb64175100a399df4f086524f222 100644 --- a/putsch.py +++ b/putsch.py @@ -460,7 +460,9 @@ 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 and len(self.choix) == 0: + if self.voleur != "" and self.phase2 == 0 and self.voleurtrig == 1: + while len(self.choix) > 2: + self.choix.pop() 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 : " +