From e8add756d2c0609cabb6f462cbd60e691f70a325 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Tue, 17 Jul 2012 16:09:32 +0200 Subject: [PATCH] =?utf8?q?:-=C2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- themis.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/themis.py b/themis.py index 99c7343..164bb2f 100755 --- a/themis.py +++ b/themis.py @@ -656,6 +656,10 @@ class Themis(ircbot.SingleServerIRCBot): log(self.serveur,"%s kické de %s par %s (raison : %s)" %(victime,channel,auteur,raison)) time.sleep(2) serv.join(channel) + username = nm_to_u(ev.source()).lower() + if channel == "#déprime" and "peb" in username or "becue" in username: + time.sleep(5) + serv.kick(auteur, "Va abuser de tes droits ailleurs !") def kicker(self, chan, pseudo, raison=None): if raison==None: -- 2.39.2