From e0bda6b8505a33bda82bb49a7d52c3a4c7358f76 Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 6 Jan 2017 22:48:11 -0800 Subject: [PATCH] relay: also filter out low TS values in burst relaying --- plugins/relay.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/relay.py b/plugins/relay.py index b8446f0..32e22c3 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -610,6 +610,12 @@ def relay_joins(irc, channel, users, ts, burst=True): Relays one or more users' joins from a channel to its relay links. """ joined_nets = {} + + if ts < 750000: + current_ts = int(time.time()) + log.debug('(%s) relay: resetting too low TS value of %s on %s to %s', irc.name, ts, users, current_ts) + ts = current_ts + for name, remoteirc in world.networkobjects.copy().items(): queued_users = [] if name == irc.name or not remoteirc.connected.is_set():