From ab2ed90ef9240788672c60e416c93c53e873bb42 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 23 Jan 2020 12:51:09 +0000 Subject: [PATCH] set_own_nickname before sending self.nick event --- src/core_modules/line_handler/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core_modules/line_handler/user.py b/src/core_modules/line_handler/user.py index d1592cd7..1d7ad016 100644 --- a/src/core_modules/line_handler/user.py +++ b/src/core_modules/line_handler/user.py @@ -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)