Handle set_nick event-action with .nick-property
This commit is contained in:
parent
088d905196
commit
c2fb6aa6c1
|
@ -1,5 +1,4 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# TODO: Implement action for set_nick event
|
|
||||||
import datetime
|
import datetime
|
||||||
import logging
|
import logging
|
||||||
from collections import MutableMapping
|
from collections import MutableMapping
|
||||||
|
@ -36,7 +35,7 @@ class Clients(MutableMapping):
|
||||||
event.identifier, Client(event.identifier)
|
event.identifier, Client(event.identifier)
|
||||||
)
|
)
|
||||||
if event.action == 'set_nick':
|
if event.action == 'set_nick':
|
||||||
# omit, not implemented, nick action for now
|
client.nick = event.arg
|
||||||
continue
|
continue
|
||||||
if event.arg_is_client:
|
if event.arg_is_client:
|
||||||
# if arg is client, replace identifier with Client-obj
|
# if arg is client, replace identifier with Client-obj
|
||||||
|
|
Loading…
Reference in New Issue