diff options
Diffstat (limited to 'replay.h')
-rw-r--r-- | replay.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -19,6 +19,7 @@ #define REPLAY_H_INCLUDED #define _XOPEN_SOURCE +#define _XOPEN_SOURCE_EXTENDED #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -40,6 +41,10 @@ int replaylines(int seconds, char *basedir); int readreplayline(int seconds, int linenum, char *str, char *basedir); +// 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'. +int lastspokesecondsago(char *nick, char *basedir); + int writereplayline(char *str, char *basedir); #endif |