3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 04:02:45 +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,7 +521,8 @@ 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])
self.updateTS(channel, their_ts) if their_ts > 0:
self.updateTS(channel, their_ts)
return {'target': channel, 'modes': parsedmodes, 'oldchan': oldobj} return {'target': channel, 'modes': parsedmodes, 'oldchan': oldobj}
else: else:
log.warning("(%s) received MODE for non-channel target: %r", log.warning("(%s) received MODE for non-channel target: %r",