From c2fb6aa6c13cd31949718183e1f1f8a9239fd6da Mon Sep 17 00:00:00 2001
From: Thor77 <thor77@thor77.org>
Date: Mon, 24 Jul 2017 14:39:35 +0200
Subject: [PATCH] Handle set_nick event-action with .nick-property

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

diff --git a/tsstats/client.py b/tsstats/client.py
index edb73e9..cb220ab 100644
--- a/tsstats/client.py
+++ b/tsstats/client.py
@@ -1,5 +1,4 @@
 # -*- coding: utf-8 -*-
-# TODO: Implement action for set_nick event
 import datetime
 import logging
 from collections import MutableMapping
@@ -36,7 +35,7 @@ class Clients(MutableMapping):
                 event.identifier, Client(event.identifier)
             )
             if event.action == 'set_nick':
-                # omit, not implemented, nick action for now
+                client.nick = event.arg
                 continue
             if event.arg_is_client:
                 # if arg is client, replace identifier with Client-obj