From d606944648695ef3e5f2a73d6424137cf9854431 Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 23 Nov 2018 13:55:40 +0000 Subject: [PATCH] Move `self.name = self.nickname_lower` to under setting `self.nickname_lower`, otherwise `self.name` will be `""` --- src/IRCUser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IRCUser.py b/src/IRCUser.py index 72ac6831..ecb03342 100644 --- a/src/IRCUser.py +++ b/src/IRCUser.py @@ -37,10 +37,10 @@ class User(IRCObject.Object): return (self.identified_account_override or self.identified_account) def set_nickname(self, nickname: str): - self.name = self.nickname_lower self.nickname = nickname self.nickname_lower = utils.irc.lower(self.server.case_mapping, nickname) + self.name = self.nickname_lower def join_channel(self, channel: "IRCChannel.Channel"): self.channels.add(channel) def part_channel(self, channel: "IRCChannel.Channel"):