From: Vincent Le Gallic Date: Tue, 26 Jun 2012 17:27:00 +0000 (+0200) Subject: "Bonjour à tous"-fail X-Git-Url: http://gitweb.pimeys.fr/?p=bots%2Fbasile.git;a=commitdiff_plain;h=7ce8b7c5ed4cec336c94e9c5d4f358cd5917fa65 "Bonjour à tous"-fail --- diff --git a/basile.py b/basile.py index a0046b3..011dc56 100755 --- a/basile.py +++ b/basile.py @@ -747,8 +747,8 @@ class Basile(ircbot.SingleServerIRCBot): if not canal in self.quiet_channels: mypseudo=self.nick if re.match((u"^("+u"|".join(config.bonjour_triggers) - +u")( {}| all| tout le monde|(|à) tous)(\.|( |)!|)$" - ).format(mypseudo).lower(), message.strip().lower()): + +ur")( {}| all| tout le monde| (à )?tous)(\.| ?!)?$" + ).format(mypseudo).lower(), message.decode("utf8").strip().lower()): answer=random.choice(config.bonjour_answers) serv.privmsg(canal,answer.format(auteur).encode("utf8")) if (is_perdu(message) and not canal in self.quiet_channels):