From bb8332e8e435460a63fc76c3cf89de383e6bf981 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Tue, 13 May 2014 23:20:44 +0200 Subject: [PATCH 1/1] =?utf8?q?Valeur=20par=20d=C3=A9faut=20de=20derni?= =?utf8?q?=C3=A8re=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 --- salesman.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/salesman.py b/salesman.py index 7966465..fa5e81e 100755 --- a/salesman.py +++ b/salesman.py @@ -596,7 +596,8 @@ class Salesman(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]