Handle set_nick event-action with .nick-property

This commit is contained in:
Thor77 2017-07-24 14:39:35 +02:00
parent 088d905196
commit c2fb6aa6c1
1 changed files with 1 additions and 2 deletions

View File

@ -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