summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--replay.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/replay.c b/replay.c
index 9ae4d82..1563c17 100644
--- a/replay.c
+++ b/replay.c
@@ -76,11 +76,9 @@ void formattime(char *str) {
char timestampf[TIMELEN]; // Formatted timestamp
// Convert into [HH:MM:SS]
strftime(timestampf, TIMELEN, "[%H:%M:%S]", &tm);
- printf("Formatted time string: '%s'.\n", timestampf);
// Strip the original unixtimestamp
striptimestamp(str);
- printf("Now got '%s' and '%s'.\n", timestampf, str);
// Take note of the length
int len = strlen(str);
@@ -91,7 +89,6 @@ void formattime(char *str) {
if ((ret = strstr(str, "PRIVMSG")) != NULL) {
// Position within str of "PRIVMSG"
pos1 = ret - str;
- printf("Found 'PRIVMSG' at position '%d' of '%s'.\n", pos1, str);
} else {
// If it's not a PRIVMSG, stop here
return;
@@ -103,7 +100,6 @@ void formattime(char *str) {
if ((ret2 = strstr(ret, ":")) != NULL) {
// Position within ret of ":"
pos2 = ret2 - ret;
- printf("Found ':' at position '%d' of '%s'.\n", pos2, ret);
} else {
// Didn't find the real message, weird.
return;
@@ -138,8 +134,6 @@ void formattime(char *str) {
// Copy the whole thing back to str and null terminate
strncpy(str, newline, len + TIMELEN);
str[len + TIMELEN] = '\0';
-
- printf("Ended up with replay string of: '%s'.\n", str);
}
// Return the number of lines in the replay log since 'seconds' seconds ago, or -1 if there a problem.
@@ -170,8 +164,6 @@ int replaylines(int seconds) {
return -1;
}
- printf("Timestamp is: '%d'.\n", timestamp);
-
// If the line is within range of the requested time, count it
if (timestamp > timenow - seconds) {
numlines++;
@@ -205,7 +197,6 @@ int readreplayline(int seconds, int linenum, char *str) {
int timenow = (int)time(NULL);
while (fgets(line, MAXCHAR, fp) != NULL) {
- printf("Read: '%s'.\n", line);
// Read the timestamp from each line
int timestamp = gettimestamp(line);
if (timestamp < 1) {