From 473911f9d82f301f843adf4a6b3966aece245805 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Fri, 4 Sep 2015 21:49:10 +0200 Subject: [PATCH] add last_seen-attr to Client --- tsstats.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tsstats.py b/tsstats.py index e82a253..f2b719c 100755 --- a/tsstats.py +++ b/tsstats.py @@ -79,6 +79,7 @@ class Client: self.pkicks = 0 self.bans = 0 self.pbans = 0 + self.last_seen = 0 # private self._last_connect = 0 @@ -101,6 +102,7 @@ class Client: self.connected -= 1 session_time = timestamp - self._last_connect self.onlinetime += session_time + self.last_seen = timestamp def kick(self, target): '''