3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 11:42:51 +01:00

clientbot: explicitly send /names after join (#388)

This commit is contained in:
James Lu 2017-01-09 21:12:13 -08:00
parent 602f35cb70
commit ccfc2f601d

View File

@ -139,7 +139,8 @@ class ClientbotWrapperProtocol(Protocol):
# rely on the /NAMES reply to sync it up properly.
if self.irc.pseudoclient and client == self.irc.pseudoclient.uid:
self.irc.send('JOIN %s' % channel)
# Send a /who request right after
# Send /names and /who requests right after
self.irc.send('NAMES %s' % channel)
self.irc.send('WHO %s' % channel)
else:
self.irc.channels[channel].users.add(client)