3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-24 03:29:28 +01:00

relay: skip channel TS check for Clientbot

This commit is contained in:
James Lu 2016-10-22 20:45:29 -07:00
parent a5d97c15e7
commit d230af1d5e

View File

@ -1698,7 +1698,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 "