summaryrefslogtreecommitdiff
path: root/message.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-06-16 23:16:18 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-06-16 23:16:18 +0100
commit61906329ccbe96c25c75533f819dea269492f5a7 (patch)
tree647e407cb483fc13a26e616891c7504788bed813 /message.c
parent87b890b501a9ed7bfbfbe0fabde6ca1ca4c15086 (diff)
Implement two new auto replay modes:
- replaymode = "noclients": All messages since the bouncer last had no clients connected - replaymode = "lastchange": All messages since the last client connect or disconnect
Diffstat (limited to 'message.c')
-rw-r--r--message.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/message.c b/message.c
index 0137fd4..3e79605 100644
--- a/message.c
+++ b/message.c
@@ -950,6 +950,9 @@ int processclientmessage(SSL *server_ssl, char *str, struct client *clients, int
sendtoclient(sourcefd, outgoingmsg, clients, settings, 0);
}
+ // And record the time of the last client registration
+ ircdstate->clientchangetime = time(NULL);
+
return 1;
}