X-Git-Url: http://gitweb.pimeys.fr/?p=bots%2Fbasile.git;a=blobdiff_plain;f=basile.py;h=011dc56a18699f04d7eee861cfb2c73b189c0bd5;hp=a0046b3631d2c5ac11734c7836e14c456cde5fc2;hb=7ce8b7c5ed4cec336c94e9c5d4f358cd5917fa65;hpb=e626008e6b4ae9b5c6c67e0912c3f0515546e19c 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):