diff options
author | Luke Bratch <luke@bratch.co.uk> | 2019-06-11 22:54:50 +0100 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2019-06-11 22:54:50 +0100 |
commit | 511e258e901e5248e1706609ba1099507fd750ae (patch) | |
tree | 4c7ee92fbe3634e7c78579657a023948a1a6bbae /functions.h | |
parent | 9db9fb396aaf601bd00f2b62face2693307a0e16 (diff) |
Implement configurable auto replay modes. So far there is "none", "time" (auto replay the last X seconds), and "lastspoke" (auto replay everything since you last spoke).
Diffstat (limited to 'functions.h')
-rw-r--r-- | functions.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/functions.h b/functions.h index 7638b61..c0e90f8 100644 --- a/functions.h +++ b/functions.h @@ -127,12 +127,17 @@ int inchannel(struct channel *channels, char *name); // Returns -1 if there was an error. int channelindex(struct channel *channels, char *name); -// Send the requested number of lines of replay log to the requested client +// Send the requested number of lines of replay log to the requested client. // 'sourcefd' is the client to send to, and replayseconds is the number of -// seconds of replay to replay. +// seconds of replay log to replay. // Returns 1 for success or 0 for failure. int doreplay(int sourcefd, int replayseconds, struct client *clients, struct settings *settings, struct ircdstate *ircdstate, struct channel *channels); +// Send the auto replay to the requested client, where 'sourcefd' is the client +// to send to. The type of replay will depend on the user's settings. +// Returns 1 for success or 0 for failure. +int doautoreplay(int sourcefd, struct client *clients, struct settings *settings, struct ircdstate *ircdstate, struct channel *channels); + // Return a count of the number of connected clients int numclients(struct client *clients); |