diff options
author | Luke Bratch <luke@bratch.co.uk> | 2022-11-25 00:03:17 +0000 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2022-11-25 00:03:17 +0000 |
commit | ae1390b2bef4dc6a1a113cddaee37d745b559b1f (patch) | |
tree | a5f3894e616ae387c079ae03048461afe0854994 /replay.h | |
parent | 2e665e03b6175b3f31f0ef1e058183417df1456e (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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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'. |