From: Vincent Le Gallic Date: Tue, 17 Jul 2012 14:09:32 +0000 (+0200) Subject: :-° X-Git-Url: http://gitweb.pimeys.fr/?p=bots%2Fthemis.git;a=commitdiff_plain;h=e8add756d2c0609cabb6f462cbd60e691f70a325 :-° --- 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: