summaryrefslogtreecommitdiff
path: root/replay.h
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2022-11-25 00:03:17 +0000
committerLuke Bratch <luke@bratch.co.uk>2022-11-25 00:03:17 +0000
commitae1390b2bef4dc6a1a113cddaee37d745b559b1f (patch)
treea5f3894e616ae387c079ae03048461afe0854994 /replay.h
parent2e665e03b6175b3f31f0ef1e058183417df1456e (diff)
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.
Diffstat (limited to 'replay.h')
-rw-r--r--replay.h2
1 files changed, 1 insertions, 1 deletions
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'.