From 7ce8b7c5ed4cec336c94e9c5d4f358cd5917fa65 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Tue, 26 Jun 2012 19:27:00 +0200 Subject: [PATCH] =?utf8?q?"Bonjour=20=C3=A0=20tous"-fail?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- basile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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): -- 2.39.2