diff --git a/putsch.py b/putsch.py index f9592dfc6cce3ecbed1c56f855bc78b75c453aff..18f61721cb6c292f2e76d9e52a91b4f4ec90810c 100644 --- a/putsch.py +++ b/putsch.py @@ -459,7 +459,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 : " +