X-Git-Url: http://gitweb.pimeys.fr/?p=bots%2Fjosh.git;a=blobdiff_plain;f=josh.py;fp=josh.py;h=98fc4a07e634e2a8d8bdf9566ac7285ef8f6307b;hp=e4c4da126016b8fb54533c70f6eff9287bd0c681;hb=6efcdfdce3131d283fe3ba9089d8f22187b3ffdb;hpb=fe9d5506f786c9f5010a287daad6cdeb5dbe0e8c diff --git a/josh.py b/josh.py index e4c4da1..98fc4a0 100755 --- 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."""