From cbc76b5541711095722f1114ff54516b18bdf32e Mon Sep 17 00:00:00 2001 From: Thor77 Date: Sat, 9 Sep 2017 18:44:41 +0200 Subject: [PATCH] Add missing identmap-lookup for new clients --- tsstats/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tsstats/client.py b/tsstats/client.py index 09f7102..a00e1c3 100644 --- a/tsstats/client.py +++ b/tsstats/client.py @@ -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