From 2039a8f9b53bdd77fcc702c653f6355fa14295a1 Mon Sep 17 00:00:00 2001 From: Joscha Date: Thu, 7 Sep 2017 20:14:44 +0000 Subject: [PATCH] Update nich on nick-event, preventing the 1N-bug with bots joining --- infobot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/infobot.py b/infobot.py index 7ca17a6..df73579 100644 --- a/infobot.py +++ b/infobot.py @@ -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()