From ae1390b2bef4dc6a1a113cddaee37d745b559b1f Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Fri, 25 Nov 2022 00:03:17 +0000 Subject: Implement fake QUIT handling via a NOTICE when doing a replay. Since user QUIT messages don't contain channel names, clients that didn't know which channels a nick was in when receiving a quit message for that nick can't show a per-channel QUIT notification. Some clients just display the QUIT message in the server status window, others silently ignore it. Cater for those clients by sending a NOTICE about the QUIT rather than replaying it - assuming the nick isn't still in any of our channels. --- replay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'replay.h') diff --git a/replay.h b/replay.h index dcf6771..d2d2c6d 100644 --- a/replay.h +++ b/replay.h @@ -42,7 +42,7 @@ // 'basedir' is the directory in which to find 'replay.log'. int replaylinestime(int seconds, char *basedir); -int readreplayline(int seconds, int linenum, char *str, struct settings *settings, struct ircdstate *ircdstate); +int readreplayline(int seconds, int linenum, char *str, int *origtimestamp, struct settings *settings, struct ircdstate *ircdstate); // Returns the line number in the replay log file on which 'nick' last spoke, or -1 if there is a problem. // 'basedir' is the directory in which to find 'replay.log'. -- cgit v1.2.3