summaryrefslogtreecommitdiff
path: root/blabouncer.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-09-07 17:25:01 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-09-07 17:25:01 +0100
commit3b836818fe3626798924a56f1660ab5423998094 (patch)
tree3fe8a232fb6539ba881962d1e38a9e858fd654af /blabouncer.c
parent6ae84b9245bfaa832f847a31952b2ae33daf2299 (diff)
Avoid more replay log NICK synchronisation issues by ignoring replay log nick changes from us if not our current nick, and by completely ignoring replaying any type of replay log line from before blabouncer was launched.
Diffstat (limited to 'blabouncer.c')
-rw-r--r--blabouncer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/blabouncer.c b/blabouncer.c
index 7d8dc06..cfc1f2d 100644
--- a/blabouncer.c
+++ b/blabouncer.c
@@ -413,6 +413,8 @@ void dochat(int *serversockfd, int *clientsockfd, struct settings *settings) {
ircdstate.reconnecting = 0;
ircdstate.clientchangetime = time(NULL);
ircdstate.clientsnonetime = time(NULL);
+ // Record the time we launched (for comparisons later)
+ ircdstate.launchtime = time(NULL);
// Struct of client codes
// Used to track the last time a client identifying as a given client connected to handle auto replay for a known client.