From 5727848b9f5db55e760631dadae9ee941bf46ca2 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Tue, 13 May 2014 23:19:31 +0200 Subject: [PATCH] =?utf8?q?Valeur=20par=20d=C3=A9faut=20de=20derni=C3=A8re?= =?utf8?q?=20activit=C3=A9=20=3D=20temps=20d'idle?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Donc, ¬ < config.idle_time --- historien.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/historien.py b/historien.py index 04f89de..e37cbb5 100755 --- a/historien.py +++ b/historien.py @@ -662,7 +662,8 @@ class Historien(ircbot.SingleServerIRCBot): if force or (not pseudo in config.idle_bots and all([not re.match(ignore, message) for ignore in config.idle_messages])): self.last_activity[canal]=time.time() def is_active(self,canal): - return time.time()-self.last_activity[canal]