mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 11:39:25 +01:00
updateTS: don't save any broken TS values lower than 750000
Workaround for #385, and other related timestamp issues caused by the TS value getting cut off in mode messages (#283)
(cherry picked from commit ba330bbfac
)
This commit is contained in:
parent
4020c3dea1
commit
8878f77636
@ -1295,9 +1295,12 @@ class Protocol():
|
|||||||
_apply()
|
_apply()
|
||||||
|
|
||||||
elif (their_ts < our_ts):
|
elif (their_ts < our_ts):
|
||||||
log.debug('(%s) Resetting channel TS of %s from %s to %s (remote has lower TS)',
|
if their_ts < 750000:
|
||||||
self.irc.name, channel, our_ts, their_ts)
|
log.warning('(%s) Possible desync? Not setting bogus TS %s on channel %s', self.irc.name, their_ts, channel)
|
||||||
self.irc.channels[channel].ts = their_ts
|
else:
|
||||||
|
log.debug('(%s) Resetting channel TS of %s from %s to %s (remote has lower TS)',
|
||||||
|
self.irc.name, channel, our_ts, their_ts)
|
||||||
|
self.irc.channels[channel].ts = their_ts
|
||||||
|
|
||||||
# Remote TS was lower and we're receiving modes. Clear the modelist and apply theirs.
|
# Remote TS was lower and we're receiving modes. Clear the modelist and apply theirs.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user