X-Git-Url: http://gitweb.pimeys.fr/?p=bots%2Fhung.git;a=blobdiff_plain;f=hung.py;h=d91e4e0fa995cd837316c6c45d78589866ee514d;hp=7b848186bd67cfa2b9d3adc62b031b2f06ed906f;hb=d4759a5b6be6919bab56eb2d980a9010fbb883eb;hpb=8847da02712c4e2f56c1ab75a3da4d450513a202 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):