3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

clientbot: always add channels to users' channel lists in names reply

Do this regardless of whether the user is already added to the channel's user list/kick queue, since those are tracked separately.

Closes #388.
This commit is contained in:
James Lu 2017-01-09 21:12:35 -08:00
parent ccfc2f601d
commit fb9144a715

View File

@ -635,7 +635,7 @@ class ClientbotWrapperProtocol(Protocol):
if (idsource not in self.irc.channels[channel].users) or (idsource in \
self.kick_queue.get(channel, ([],))[0]):
names.add(idsource)
self.irc.users[idsource].channels.add(channel)
self.irc.users[idsource].channels.add(channel)
# Process prefix modes
for char in name: