3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 19:52:53 +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:
James Lu 2015-11-15 09:52:01 -08:00
parent 7e8e8f33f7
commit 89e515f513

View File

@ -521,6 +521,7 @@ 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])
if their_ts > 0:
self.updateTS(channel, their_ts)
return {'target': channel, 'modes': parsedmodes, 'oldchan': oldobj}
else: