fix channel.users dict not updated on nick change
This commit is contained in:
parent
cc148145d3
commit
6368a60f59
2
bot.py
2
bot.py
|
@ -446,6 +446,8 @@ class Fulvia(irc.IRCClient):
|
||||||
line = "-!- {oldname} is now known as {newname}"
|
line = "-!- {oldname} is now known as {newname}"
|
||||||
|
|
||||||
for channel_name, channel in self.channels.items():
|
for channel_name, channel in self.channels.items():
|
||||||
|
if oldname not in channel.users.keys():
|
||||||
|
continue
|
||||||
self.log(channel_name, line)
|
self.log(channel_name, line)
|
||||||
|
|
||||||
user = channel.users.pop(oldname)
|
user = channel.users.pop(oldname)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user