From 24589b21c1d5ed6833f5df5b68efaab301be5e50 Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Sun, 27 Dec 2015 09:28:48 +1000 Subject: [PATCH] hybrid: Handle PONG --- protocols/hybrid.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/protocols/hybrid.py b/protocols/hybrid.py index 2871600..adfb12c 100644 --- a/protocols/hybrid.py +++ b/protocols/hybrid.py @@ -333,6 +333,11 @@ class HybridProtocol(TS6BaseProtocol): if utils.isInternalServer(self.irc, destination): self._send(destination, 'PONG %s :%s' % (self.irc.servers[destination].name, source)) + def handle_pong(self, source, command, args): + """Handles incoming PONG commands.""" + if source == self.irc.uplink and args[1] == self.irc.sid: + self.irc.lastping = time.time() + # empty handlers # TODO: there's a better way to do this def handle_svinfo(self, numeric, command, args):