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

Add missing identmap-lookup for new clients

This commit is contained in:
Thor77 2017-09-09 18:44:41 +02:00
parent 1c224fa0ee
commit cbc76b5541

View file

@ -32,7 +32,8 @@ class Clients(MutableMapping):
for event in events:
# find corresponding client
client = self.setdefault(
event.identifier, Client(event.identifier)
event.identifier,
Client(self.ident_map.get(event.identifier, event.identifier))
)
if event.action == 'set_nick':
client.nick = event.arg