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

clientbot: don't send /NAMES on join, it isn't needed

This commit is contained in:
James Lu 2017-08-20 17:28:44 -07:00
parent 85f283c5f8
commit 55f50eb251

View File

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