summaryrefslogtreecommitdiff
path: root/replay.c
AgeCommit message (Collapse)Author
2024-07-17Return -1 if lastspokelinenumber() fails to find a timestamp.Luke Bratch
2023-08-01Always close() the replay log file if it's been opened.Luke Bratch
2023-04-08Add/correct description for writereplayline().Luke Bratch
2022-11-25Implement fake QUIT handling via a NOTICE when doing a replay.Luke Bratch
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.
2022-11-24Fix replaymode = "lastspoke" by using line numbers rather than time to ↵Luke Bratch
calculate replay start point. Introduce new function doreplaylastspoke() to achieve this, move doreplay() into replay.c as doreplaytime() and refactor common things into sanitisereplay().
2021-01-19Fix various issues where strncmp was only comparing a substring.Luke Bratch
This fixes issues such as when JOINing a channel whose name is a substring of another channel, things like PARTing don't work properly.
2020-10-21Improve debug output in readreplayline().Luke Bratch
2019-12-22Make full debug output optional for extractnickfromprefix() and ↵Luke Bratch
stripprefix() to avoid huge debug logs when using replaymode = "lastspoke" combined with DEBUG_FULL.
2019-09-14Handle ignoring replay messages from before we launched better to avoid ↵Luke Bratch
misleading error messages going to clients.
2019-09-12Don't try to fclose() the replay log file if fopen() returned NULL.Luke Bratch
2019-09-07Avoid more replay log NICK synchronisation issues by ignoring replay log ↵Luke Bratch
nick changes from us if not our current nick, and by completely ignoring replaying any type of replay log line from before blabouncer was launched.
2019-09-07Add a configuration option to include the date in the timestamp when ↵Luke Bratch
replaying the replay log.
2019-07-18Correctly log and replay "/me" PRIVMSGs.Luke Bratch
2019-07-10Ensure string isn't too long when writing to replay log.Luke Bratch
2019-06-11Implement configurable auto replay modes. So far there is "none", "time" ↵Luke Bratch
(auto replay the last X seconds), and "lastspoke" (auto replay everything since you last spoke).
2019-06-10Add copyright and GPL 3 notices.Luke Bratch
2019-05-30Convert debugprint() from being to file/screen/disabled to always being to ↵Luke Bratch
file with configurable verbosity.
2019-05-29Don't exit if there's a failure to read/write from/to the replay log file.Luke Bratch
2019-05-29Ensure writes to file are unformatted strings.Luke Bratch
2019-05-27Make debug output optional and disabled by default.Luke Bratch
2019-05-19Change README a bit and add a comment in replay.c.Luke Bratch
2019-05-19Announce the start and end of log replay. Also ensure log replay lines ↵Luke Bratch
finish with CRLF when writing.
2019-05-16Add a configurable base directory for things like logs, defaulting to ↵Luke Bratch
$HOME/.blabouncer/.
2019-05-16Implement normal logging (file per channel/user).Luke Bratch
2019-05-15Remove excessive replay log debug messages.Luke Bratch
2019-05-12Add a settings structure for passing around everywhere to store ↵Luke Bratch
config/settings. Also fix the insanely inconsistent spelling/naming of replay log related things.
2019-05-11Implement authentication in the form of the bouncer having a configurable ↵Luke Bratch
server password
2019-05-11Implement relay log writing.Luke Bratch
2019-05-11Add the ability to replay messages from a replay log file. (No replay log ↵Luke Bratch
file writing yet.)