From: Hung IRC Bot Date: Fri, 14 Jun 2013 15:40:34 +0000 (+0200) Subject: On peut mettre autre chose après une proposition de mot X-Git-Url: http://gitweb.pimeys.fr/?p=bots%2Fhung.git;a=commitdiff_plain;h=d4759a5b6be6919bab56eb2d980a9010fbb883eb On peut mettre autre chose après une proposition de mot --- diff --git a/hung.py b/hung.py index 7b84818..d91e4e0 100755 --- a/hung.py +++ b/hung.py @@ -75,7 +75,7 @@ def is_mot(mot,liste): real_word = "".join([lettre[0] for lettre in liste]) real_word = real_word.decode("utf8").lower() mot=remplace_accents(mot.decode("utf8")) - return mot==real_word + return mot.startswith(real_word) class Hung(ircbot.SingleServerIRCBot): def __init__(self,serveur,debug=False):