add optional nick-arg to tsstats.client.Client.__init__

This commit is contained in:
Thor77 2016-05-19 15:24:18 +02:00
parent c9895c6c5a
commit cb94560a2f
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ class Client(object):
Client provides high-level-access to a Teamspeak-Client Client provides high-level-access to a Teamspeak-Client
''' '''
def __init__(self, identifier): def __init__(self, identifier, nick=None):
''' '''
Initialize a new Client Initialize a new Client
@ -65,7 +65,7 @@ class Client(object):
''' '''
# public # public
self.identifier = identifier self.identifier = identifier
self.nick = None self.nick = nick
self.connected = 0 self.connected = 0
self.onlinetime = 0 self.onlinetime = 0
self.kicks = 0 self.kicks = 0