X-Git-Url: http://gitweb.pimeys.fr/?p=bots%2Fjosh.git;a=blobdiff_plain;f=isit.py;fp=isit.py;h=ac1da5deb5e1270845174ed37a0242a0e727dab4;hp=07c81dc1ab26ef63f23d5db9c2d4aba44fe8e41f;hb=6efcdfdce3131d283fe3ba9089d8f22187b3ffdb;hpb=fe9d5506f786c9f5010a287daad6cdeb5dbe0e8c diff --git a/isit.py b/isit.py index 07c81dc..ac1da5d 100644 --- a/isit.py +++ b/isit.py @@ -40,3 +40,7 @@ regexp_compile() def is_tag(chain): """Vérifie si ``chain`` demande de fermer sa gueule.""" return is_something(chain, config.tag_regexp_compiled) + +def is_allah(chain): + """Vérifie si ``chain``est du allah-spam.""" + return is_something(chain, config.allah_regexp_compiled)