Update nich on nick-event, preventing the 1N-bug with bots joining

This commit is contained in:
Joscha 2017-09-07 20:14:44 +00:00
parent 8fa65bf07b
commit 2039a8f9b5

View file

@ -40,6 +40,9 @@ class InfoBot(yaboli.Bot):
async def on_part(self, session):
await self.update_nick()
async def on_nick(self, session_id, user_id, from_nick, to_nick):
await self.update_nick()
async def on_snapshot(self, user_id, session_id, version, listing, log, nick=None,
pm_with_nick=None, pm_with_user_id=None):
await self.update_nick()