]> gitweb.pimeys.fr Git - bots/basile.git/commitdiff
Merge branch 'master' of /git/Basile
authorVincent Le Gallic <basile@crans.org>
Sat, 26 May 2012 22:50:37 +0000 (00:50 +0200)
committerVincent Le Gallic <basile@crans.org>
Sat, 26 May 2012 22:50:37 +0000 (00:50 +0200)
basile.py

index 7c1c5f795539e00bfa7fecb5e89fd44966b4cc14..dac143977c668683d3b2774ea2f1c98f590ea710 100755 (executable)
--- a/basile.py
+++ b/basile.py
@@ -852,7 +852,7 @@ class Basile(ircbot.SingleServerIRCBot):
                     serv.action(canal,"sert un grand verre de jus de pomme à %s : tout le monde sait qu'il ne boit pas."%(auteur))
                 else:
                     serv.action(canal,"sert un verre de manzana à %s"%(auteur))
-            if re.match('^(.|§|:|)(w|b) [0-9]+$',message) and not canal in self.quiet_channels:
+            if re.match(u'^ *(.|§|!|/|/|:|)(w|b) [0-9]+$',message.decode("utf8")) and not canal in self.quiet_channels:
                 failanswers=config_buffer_fail_answers
                 answer=random.choice(failanswers)
                 serv.privmsg(canal,("%s: %s"%(auteur,answer)).encode("utf8"))