mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 17:29:21 +01:00
clientbot: fix self.connected.set() order
This commit is contained in:
parent
a5e7d76341
commit
06d69aadf7
@ -588,10 +588,10 @@ class ClientbotWrapperProtocol(IRCCommonProtocol):
|
|||||||
self.send(line)
|
self.send(line)
|
||||||
|
|
||||||
# Virtual endburst hook.
|
# Virtual endburst hook.
|
||||||
|
self.connected.set() # Note, this should always be set before sending ENDBURST
|
||||||
if not self.has_eob:
|
if not self.has_eob:
|
||||||
self.has_eob = True
|
self.has_eob = True
|
||||||
return {'parse_as': 'ENDBURST'}
|
return {'parse_as': 'ENDBURST'}
|
||||||
self.connected.set()
|
|
||||||
|
|
||||||
handle_422 = handle_376
|
handle_422 = handle_376
|
||||||
|
|
||||||
|
@ -223,7 +223,6 @@ class IRCCommonProtocol(IRCNetwork):
|
|||||||
log.debug('(%s) handle_005: autodetecting mode %s (%s) as %s', self.name,
|
log.debug('(%s) handle_005: autodetecting mode %s (%s) as %s', self.name,
|
||||||
char, self.prefixmodes[char], modename)
|
char, self.prefixmodes[char], modename)
|
||||||
|
|
||||||
self.connected.set()
|
|
||||||
|
|
||||||
def _send_with_prefix(self, source, msg, **kwargs):
|
def _send_with_prefix(self, source, msg, **kwargs):
|
||||||
"""Sends a RFC 459-style raw command from the given sender."""
|
"""Sends a RFC 459-style raw command from the given sender."""
|
||||||
|
Loading…
Reference in New Issue
Block a user