diff options
author | Luke Bratch <luke@bratch.co.uk> | 2019-09-07 12:43:04 +0100 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2019-09-07 12:43:04 +0100 |
commit | e4d1706031540ae74ff104c44adeb735ee0bfcf4 (patch) | |
tree | 46e12bb133f0810bf9f535ad8f34a7415746c31f /replay.h | |
parent | 38bd2b2761b7d0f556945ffad78f73536e12e157 (diff) |
Add a configuration option to include the date in the timestamp when replaying the replay log.
Diffstat (limited to 'replay.h')
-rw-r--r-- | replay.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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'. |