From f209573d0461b71129df3590c25f2907bdc38c76 Mon Sep 17 00:00:00 2001
From: Thor77 <thor77@thor77.org>
Date: Sun, 14 May 2017 23:28:59 +0200
Subject: [PATCH] Fix Clients.__add__ not using identmap

---
 tsstats/client.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tsstats/client.py b/tsstats/client.py
index bc5d4ff..057e4b9 100644
--- a/tsstats/client.py
+++ b/tsstats/client.py
@@ -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):