summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO3
-rw-r--r--replay.c7
2 files changed, 4 insertions, 6 deletions
diff --git a/TODO b/TODO
index d57b70c..fa3b393 100644
--- a/TODO
+++ b/TODO
@@ -10,8 +10,6 @@ macOS compiler may need limits.h included in structures.h.
"Starting log replay...." followed by "Unable to read replay log file!" even though replay seemed to work?
-NAMES don't seem to be sent to clients (at least old irssi) after weird timeouts like slow QUIT processing.
-
When blabouncer reconnects to a server, clients (at least XChat) get stuck with just e.g.
[13:14:50]* PONG LAG1574032890090568
[13:15:20]* PONG LAG1574032920149401
@@ -19,7 +17,6 @@ When blabouncer reconnects to a server, clients (at least XChat) get stuck with
[13:16:20]* PONG LAG1574032980263198
[13:16:50]* PONG LAG1574033010319500
[13:17:20]* PONG LAG1574033040377501
-In channels with no nicks (no nicks bit may now be fixed - retest).
Sometimes replaymode = "lastspoke" will replay the last message you sent if you spoke last and sometimes it doesn't - change to always include your last message?
diff --git a/replay.c b/replay.c
index 11c75bc..d09bd8d 100644
--- a/replay.c
+++ b/replay.c
@@ -230,7 +230,7 @@ int readreplayline(int seconds, int linenum, char *str, struct settings *setting
// Build path
if (!snprintf(filename, PATH_MAX, "%s/replay.log", settings->basedir)) {
- debugprint(DEBUG_CRIT, "debuglog(): Error while preparing replay path, exiting!\n");
+ debugprint(DEBUG_CRIT, "readreplayline(): error: couldn't prepare replay path, exiting!\n");
exit(1);
}
@@ -239,7 +239,7 @@ int readreplayline(int seconds, int linenum, char *str, struct settings *setting
fp = fopen(filename, "r");
if (fp == NULL) {
- debugprint(DEBUG_CRIT, "error: readreplayline(): could not open replay log '%s'.\n", filename);
+ debugprint(DEBUG_CRIT, "readreplayline(): could not open replay log '%s'.\n", filename);
return 0;
}
@@ -250,7 +250,7 @@ int readreplayline(int seconds, int linenum, char *str, struct settings *setting
// Read the timestamp from each line
int timestamp = gettimestamp(line);
if (timestamp < 1) {
- debugprint(DEBUG_CRIT, "readreplayline(): Error reading timestamp from replay log file.\n");
+ debugprint(DEBUG_CRIT, "readreplayline(): error: reading timestamp from replay log file.\n");
fclose(fp);
return 0;
}
@@ -282,6 +282,7 @@ int readreplayline(int seconds, int linenum, char *str, struct settings *setting
}
// If we got here something went wrong
+ debugprint(DEBUG_CRIT, "readreplayline(): error: reached the end of function (seconds %d, linenum %d)\n", seconds, linenum);
fclose(fp);
return 0;
}