Move self.name = self.nickname_lower
to under setting self.nickname_lower
,
otherwise `self.name` will be `""`
This commit is contained in:
parent
3061c65024
commit
d606944648
1 changed files with 1 additions and 1 deletions
|
@ -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"):
|
||||
|
|
Loading…
Reference in a new issue