fix channel.users dict not updated on nick change

This commit is contained in:
iou1name 2019-11-05 07:56:50 -05:00
parent cc148145d3
commit 6368a60f59

2
bot.py
View File

@ -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)