From 6368a60f595b7d6c2cc0664b81c9f6681f4d6d01 Mon Sep 17 00:00:00 2001 From: iou1name Date: Tue, 5 Nov 2019 07:56:50 -0500 Subject: [PATCH] fix channel.users dict not updated on nick change --- bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bot.py b/bot.py index 9ecbe19..c28b82d 100755 --- a/bot.py +++ b/bot.py @@ -446,6 +446,8 @@ class Fulvia(irc.IRCClient): line = "-!- {oldname} is now known as {newname}" for channel_name, channel in self.channels.items(): + if oldname not in channel.users.keys(): + continue self.log(channel_name, line) user = channel.users.pop(oldname)