1
0
Fork 0
mirror of https://github.com/Thor77/TeamspeakStats.git synced 2025-05-02 18:25:43 -04:00

Fix Clients.__add__ not using identmap

This commit is contained in:
Thor77 2017-05-14 23:28:59 +02:00
parent a4c04e34c8
commit f209573d04

View file

@ -32,7 +32,8 @@ class Clients(MutableMapping):
:param client: Client to add to the collection
:type id_or_uid: Client
'''
self.store[client.identifier] = client
identifier = client.identifier
self.store[self.ident_map.get(identifier, identifier)] = client
return self
def __iter__(self):