3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-02-02 15:44:06 +01:00

hybrid: Actually set irc.connected on CAPAB, like other protocols

This commit is contained in:
Daniel Oaks 2016-03-30 17:24:26 +10:00
parent 9d40efc114
commit 80b659a940

View File

@ -269,6 +269,9 @@ class HybridProtocol(TS6BaseProtocol):
# if required_cap not in caps: # if required_cap not in caps:
# raise ProtocolError('%s not found in TS6 capabilities list; this is required! (got %r)' % (required_cap, caps)) # raise ProtocolError('%s not found in TS6 capabilities list; this is required! (got %r)' % (required_cap, caps))
log.debug('(%s) self.irc.connected set!', self.irc.name)
self.irc.connected.set()
def handle_server(self, numeric, command, args): def handle_server(self, numeric, command, args):
# <- SERVER charybdis.midnight.vpn 1 :charybdis test server # <- SERVER charybdis.midnight.vpn 1 :charybdis test server
sname = args[0].lower() sname = args[0].lower()
@ -450,8 +453,6 @@ class HybridProtocol(TS6BaseProtocol):
def handle_endburst(self, numeric, command, args): def handle_endburst(self, numeric, command, args):
log.debug('(%s) end of burst received', self.irc.name) log.debug('(%s) end of burst received', self.irc.name)
log.debug('(%s) self.irc.connected set!', self.irc.name)
self.irc.connected.set()
# empty handlers # empty handlers
# TODO: there's a better way to do this # TODO: there's a better way to do this