From 0c81d244f3588406ab7622681d4718b11e6337cc Mon Sep 17 00:00:00 2001 From: Themis le bot IRC Date: Sun, 4 Nov 2012 15:59:22 +0100 Subject: [PATCH] =?utf8?q?Rajout=20d'un=20d=C3=A9lai=20avant=20de=20kicker?= =?utf8?q?=20PEB=20pour=20avoir=20le=20temps=20de=20rejoin?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- themis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themis.py b/themis.py index bfecf44..2ec8361 100755 --- a/themis.py +++ b/themis.py @@ -529,8 +529,8 @@ class Themis(ircbot.SingleServerIRCBot): print ev.source() print channel, username if channel == "#déprime" and "peb" in username or "becue" in username: - time.sleep(5) - serv.kick(auteur, "Va abuser de tes droits ailleurs !") + print "Kicking peb" + serv.execute_delayed(5, serv.kick, (auteur, "Va abuser de tes droits ailleurs !")) def kicker(self, chan, pseudo, raison=None): if raison==None: -- 2.39.2