3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-23 10:44:09 +01:00

relay: skip channel TS check for Clientbot

(cherry picked from commit d230af1d5e)
This commit is contained in:
James Lu 2016-10-22 20:45:29 -07:00
parent 2ed8b68c44
commit 9f4c68f114

View File

@ -1681,7 +1681,7 @@ def link(irc, source, args):
our_ts = irc.channels[localchan].ts
their_ts = world.networkobjects[remotenet].channels[channel].ts
if our_ts < their_ts:
if (our_ts < their_ts) and irc.protoname != 'clientbot':
log.debug('(%s) relay: Blocking link request %s%s -> %s%s due to bad TS (%s < %s)', irc.name,
irc.name, localchan, remotenet, channel, our_ts, their_ts)
irc.reply("Error: the channel creation date (TS) on %s is lower than the target "