mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 03:33:10 +01:00
unreal: don't set TS to 0 when it's sent in MODE (samode overrides the timestamp as this to ensure it always works)
This commit is contained in:
parent
7e8e8f33f7
commit
89e515f513
@ -521,7 +521,8 @@ class UnrealProtocol(TS6BaseProtocol):
|
||||
if numeric in self.irc.servers and args[-1].isdigit():
|
||||
# Sender is a server AND last arg is number. Perform TS updates.
|
||||
their_ts = int(args[-1])
|
||||
self.updateTS(channel, their_ts)
|
||||
if their_ts > 0:
|
||||
self.updateTS(channel, their_ts)
|
||||
return {'target': channel, 'modes': parsedmodes, 'oldchan': oldobj}
|
||||
else:
|
||||
log.warning("(%s) received MODE for non-channel target: %r",
|
||||
|
Loading…
Reference in New Issue
Block a user