set_own_nickname before sending self.nick event

This commit is contained in:
jesopo 2020-01-23 12:51:09 +00:00
parent 4515cf84e1
commit ab2ed90ef9

View file

@ -46,9 +46,9 @@ def nick(events, event):
events.on("received.nick").call(new_nickname=new_nickname,
old_nickname=old_nickname, user=user, server=event["server"])
else:
event["server"].set_own_nickname(new_nickname)
events.on("self.nick").call(server=event["server"],
new_nickname=new_nickname, old_nickname=old_nickname)
event["server"].set_own_nickname(new_nickname)
def away(events, event):
user = event["server"].get_user(event["line"].source.nickname)