summaryrefslogtreecommitdiff
path: root/structures.h
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 /structures.h
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 'structures.h')
-rw-r--r--structures.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/structures.h b/structures.h
index 3209b21..d1ec4b0 100644
--- a/structures.h
+++ b/structures.h
@@ -48,6 +48,8 @@ struct ircdstate {
int timeoutcheck; // Whether we're checking to see if we've timed out from the server
int reconnecting; // Whether or not we're reconnecting due to an earlier disconnection
char oldnick[MAXNICKLENGTH]; // Set temporarily if we end up reconnecting in case we need to tell existing clients about a nick change
+ int clientchangetime; // The last time a client registered or disconnected
+ int clientsnonetime; // The last time there were no clients registered
};
// Structure of settings either to be read from the configuration file or set/changed at runtime