From: Vincent Le Gallic Date: Tue, 1 May 2012 18:11:24 +0000 (+0200) Subject: "Basile: !qqc" aussi valide que "Basile: qqc" X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=3c0400cb344f218b19da63682c79b013c1a546c0;p=bots%2Fbasile.git "Basile: !qqc" aussi valide que "Basile: qqc" --- diff --git a/basile.py b/basile.py index 6e39914..55c7f31 100755 --- a/basile.py +++ b/basile.py @@ -677,7 +677,7 @@ class Basile(ircbot.SingleServerIRCBot): log(self.serveur,canal,auteur,message+"[unknown]") elif message in ["pain au chocolat","chocolatine"] 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=="[20-100]": serv.action(canal,"sert une bouteille de manzana à %s"%(auteur)) else: