From: Vincent Le Gallic Date: Wed, 24 Jul 2013 14:21:34 +0000 (+0200) Subject: Avec un !, c'est uniquement pour les consos note X-Git-Url: http://gitweb.pimeys.fr/?p=bots%2Fbasile.git;a=commitdiff_plain;h=6f54dc5bcb5784d5494b9fe32b524746625af7a6 Avec un !, c'est uniquement pour les consos note --- diff --git a/basile.py b/basile.py index c54f3a9..cb2b81c 100755 --- a/basile.py +++ b/basile.py @@ -680,10 +680,10 @@ class Basile(ircbot.SingleServerIRCBot): else: serv.privmsg(canal, "%s: Je ne connais pas votre pseudo note." % (auteur)) log(self.serveur, canal, auteur, message + "[unknown]") - elif (re.match("!?(pain au chocolat|chocolatine)", message.lower()) + elif (re.match("(pain au chocolat|chocolatine)", message.lower()) and not canal in self.quiet_channels): serv.action(canal, "sert un pain au chocolat à %s" % (auteur)) - elif re.match("!?manzana",message.lower()) and not canal in self.quiet_channels: + elif re.match("manzana",message.lower()) and not canal in self.quiet_channels: if auteur in config.manzana: serv.action(canal, "sert une bouteille de manzana à %s" % (auteur)) elif auteur in config.manzana_bis: