set_own_nickname before sending self.nick event
This commit is contained in:
parent
4515cf84e1
commit
ab2ed90ef9
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue