Fix sudden amnesia regarding own name
When set_nick is called, self.nick is now modified.
This commit is contained in:
parent
80b8a997fe
commit
ea1f68fb84
1 changed files with 1 additions and 0 deletions
|
|
@ -121,6 +121,7 @@ class Controller:
|
||||||
async def set_nick(self, nick):
|
async def set_nick(self, nick):
|
||||||
if nick != self.nick:
|
if nick != self.nick:
|
||||||
_, _, _, to_nick = await self.room.nick(nick)
|
_, _, _, to_nick = await self.room.nick(nick)
|
||||||
|
self.nick = to_nick
|
||||||
|
|
||||||
if to_nick != nick:
|
if to_nick != nick:
|
||||||
logger.warn(f"&{self.room.roomname}: Could not set nick to {nick!r}, set to {to_nick!r} instead.")
|
logger.warn(f"&{self.room.roomname}: Could not set nick to {nick!r}, set to {to_nick!r} instead.")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue