From 80b659a940110889105ca0f0212b4985d1d5f837 Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Wed, 30 Mar 2016 17:24:26 +1000 Subject: [PATCH] hybrid: Actually set irc.connected on CAPAB, like other protocols --- protocols/hybrid.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/protocols/hybrid.py b/protocols/hybrid.py index bcb3b24..89f6417 100644 --- a/protocols/hybrid.py +++ b/protocols/hybrid.py @@ -269,6 +269,9 @@ class HybridProtocol(TS6BaseProtocol): # if required_cap not in 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): # <- SERVER charybdis.midnight.vpn 1 :charybdis test server sname = args[0].lower() @@ -450,8 +453,6 @@ class HybridProtocol(TS6BaseProtocol): def handle_endburst(self, numeric, command, args): 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 # TODO: there's a better way to do this