From 2e665e03b6175b3f31f0ef1e058183417df1456e Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Thu, 24 Nov 2022 00:08:34 +0000 Subject: Fix replaymode = "lastspoke" by using line numbers rather than time to calculate replay start point. Introduce new function doreplaylastspoke() to achieve this, move doreplay() into replay.c as doreplaytime() and refactor common things into sanitisereplay(). --- functions.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'functions.h') diff --git a/functions.h b/functions.h index c22d7ac..28b6413 100644 --- a/functions.h +++ b/functions.h @@ -142,12 +142,6 @@ int inchannel(struct channel *channels, int maxchannelcount, char *name); // Returns -1 if there was an error. int channelindex(struct channel *channels, int maxchannelcount, char *name); -// 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 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. -- cgit v1.2.3