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

clientbot: fix self.connected.set() order

This commit is contained in:
James Lu 2017-07-03 13:04:43 -07:00
parent a5e7d76341
commit 06d69aadf7
2 changed files with 1 additions and 2 deletions

View File

@ -588,10 +588,10 @@ class ClientbotWrapperProtocol(IRCCommonProtocol):
self.send(line)
# Virtual endburst hook.
self.connected.set() # Note, this should always be set before sending ENDBURST
if not self.has_eob:
self.has_eob = True
return {'parse_as': 'ENDBURST'}
self.connected.set()
handle_422 = handle_376

View File

@ -223,7 +223,6 @@ class IRCCommonProtocol(IRCNetwork):
log.debug('(%s) handle_005: autodetecting mode %s (%s) as %s', self.name,
char, self.prefixmodes[char], modename)
self.connected.set()
def _send_with_prefix(self, source, msg, **kwargs):
"""Sends a RFC 459-style raw command from the given sender."""