mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-17 14:01:03 +01:00
relay: skip channel TS check for Clientbot
This commit is contained in:
parent
a5d97c15e7
commit
d230af1d5e
@ -1698,7 +1698,7 @@ def link(irc, source, args):
|
|||||||
|
|
||||||
our_ts = irc.channels[localchan].ts
|
our_ts = irc.channels[localchan].ts
|
||||||
their_ts = world.networkobjects[remotenet].channels[channel].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,
|
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.name, localchan, remotenet, channel, our_ts, their_ts)
|
||||||
irc.reply("Error: the channel creation date (TS) on %s is lower than the target "
|
irc.reply("Error: the channel creation date (TS) on %s is lower than the target "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user