]> gitweb.pimeys.fr Git - bots/josh.git/blobdiff - josh.py
Triggers on "allah is doing"
[bots/josh.git] / josh.py
diff --git a/josh.py b/josh.py
index e4c4da126016b8fb54533c70f6eff9287bd0c681..98fc4a07e634e2a8d8bdf9566ac7285ef8f6307b 100755 (executable)
--- a/josh.py
+++ b/josh.py
@@ -398,6 +398,8 @@ class Josh(ircbot.SingleServerIRCBot):
                     answer = random.choice(config.tag_answers)
                     for ligne in answer.split("\n"):
                         serv.privmsg(canal, "%s: %s" % (auteur, ligne.encode("utf8")))
+        if isit.is_allah(message):
+            serv.kick(canal, auteur, u"Please go spread your proselytism somewhere else.")
 
     def on_action(self, serv, ev):
         """À la réception d'une action."""