From fa59e2bded7746e95f98598b6e287d25024c19a9 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 10 Jul 2016 21:20:47 -0700 Subject: [PATCH] ts6_common: force nick TS to 100 in SAVE --- protocols/ts6_common.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/protocols/ts6_common.py b/protocols/ts6_common.py index 7f1330e..2364030 100644 --- a/protocols/ts6_common.py +++ b/protocols/ts6_common.py @@ -408,9 +408,11 @@ class TS6BaseProtocol(IRCS2SProtocol): oldnick = self.irc.users[user].nick self.irc.users[user].nick = user - self.irc.users[user].ts = ts = int(args[1]) + # TS6 SAVE sets nick TS to 100. This is hardcoded in InspIRCd and + # charybdis. + self.irc.users[user].ts = 100 - return {'target': user, 'ts': ts, 'oldnick': oldnick} + return {'target': user, 'ts': 100, 'oldnick': oldnick} def handle_topic(self, numeric, command, args): """Handles incoming TOPIC changes from clients. For topic bursts,