From acd0e1038c9552ec5ae4149ea031bbecf5512ff9 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Thu, 10 May 2012 23:30:50 +0200 Subject: [PATCH] Ajout des adverbes dans les action_trigger --- basile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/basile.py b/basile.py index b403352..fdefe8d 100755 --- a/basile.py +++ b/basile.py @@ -230,7 +230,8 @@ def is_merci(chain): def is_tamere(chain): return is_something(chain,config_tamere) def is_action_trigger(chain,pseudo): - return is_something(chain,config_action_trigger,avant=u"^",apres=" %s($|\.| |,|;).*"%(pseudo)) + return is_something(chain,config_action_trigger,avant=u"^", + apres="([a-z]*ment)? %s($|\.| |,|;).*"%(pseudo)) def is_pan(chain): return re.match(u"^(pan|bim|bang)$",unicode(chain,"utf8").lower().strip()) -- 2.39.2