From cb94560a2f8722f3e4e3fa3fdcb8741480ef57bd Mon Sep 17 00:00:00 2001 From: Thor77 Date: Thu, 19 May 2016 15:24:18 +0200 Subject: [PATCH] add optional nick-arg to tsstats.client.Client.__init__ --- tsstats/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsstats/client.py b/tsstats/client.py index a3cff16..3b0fd0c 100644 --- a/tsstats/client.py +++ b/tsstats/client.py @@ -56,7 +56,7 @@ class Client(object): Client provides high-level-access to a Teamspeak-Client ''' - def __init__(self, identifier): + def __init__(self, identifier, nick=None): ''' Initialize a new Client @@ -65,7 +65,7 @@ class Client(object): ''' # public self.identifier = identifier - self.nick = None + self.nick = nick self.connected = 0 self.onlinetime = 0 self.kicks = 0