add last_seen-attr to Client
This commit is contained in:
parent
26d993c55c
commit
473911f9d8
|
@ -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):
|
||||
'''
|
||||
|
|
Loading…
Reference in New Issue