mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-12 13:12:36 +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,6 +521,7 @@ class UnrealProtocol(TS6BaseProtocol):
|
|||||||
if numeric in self.irc.servers and args[-1].isdigit():
|
if numeric in self.irc.servers and args[-1].isdigit():
|
||||||
# Sender is a server AND last arg is number. Perform TS updates.
|
# Sender is a server AND last arg is number. Perform TS updates.
|
||||||
their_ts = int(args[-1])
|
their_ts = int(args[-1])
|
||||||
|
if their_ts > 0:
|
||||||
self.updateTS(channel, their_ts)
|
self.updateTS(channel, their_ts)
|
||||||
return {'target': channel, 'modes': parsedmodes, 'oldchan': oldobj}
|
return {'target': channel, 'modes': parsedmodes, 'oldchan': oldobj}
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user