From e4d1706031540ae74ff104c44adeb735ee0bfcf4 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Sat, 7 Sep 2019 12:43:04 +0100 Subject: Add a configuration option to include the date in the timestamp when replaying the replay log. --- replay.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'replay.h') diff --git a/replay.h b/replay.h index 5ae9994..c3f23f9 100644 --- a/replay.h +++ b/replay.h @@ -36,10 +36,11 @@ #define MAXCHAR 1000 #define TIMELEN 11 // 32-bit unixtime is up to 10 characters (+1 for null char) // TODO - Make this Year 2038 proof #define TIMELENF 11 // [HH:MM:SS] = 10 characters + 1 for null char +#define DATETIMELEN 50 // Should be enough for a full datetime string // TODO - Is it!? I think it will only ever be as long as [DD/MM/YY HH:MM:SS] (20 including null) int replaylines(int seconds, char *basedir); -int readreplayline(int seconds, int linenum, char *str, char *basedir); +int readreplayline(int seconds, int linenum, char *str, char *basedir, int replaydates); // Returns the number of seconds ago that 'nick' last spoke, or -1 if there is a problem. // 'basedir' is the directory in which to find 'replay.log'. -- cgit v1.2.3