summaryrefslogtreecommitdiff
path: root/replay.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-12-22 16:01:16 +0000
committerLuke Bratch <luke@bratch.co.uk>2019-12-22 16:01:16 +0000
commit85dd88a180043e991c19a4c93a6ce5c7fe0a6e88 (patch)
tree2866cf5772eb3e0e2da4be0a86fc5a07b499b174 /replay.c
parent2385f7b944bb22acd85e6c089e509880a45a2cb1 (diff)
Make full debug output optional for extractnickfromprefix() and stripprefix() to avoid huge debug logs when using replaymode = "lastspoke" combined with DEBUG_FULL.
Diffstat (limited to 'replay.c')
-rw-r--r--replay.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/replay.c b/replay.c
index 6e7370f..11c75bc 100644
--- a/replay.c
+++ b/replay.c
@@ -352,8 +352,9 @@ int lastspokesecondsago(char *nick, char *basedir) {
continue;
}
- // Was it said by our 'nick'?
- extractnickfromprefix(tokens[1]);
+ // Was it said by our 'nick'? Disable extractnickfromprefix() debugging
+ // as it gets very noisy when we call it from here.
+ extractnickfromprefix(tokens[1], 0);
if (strncmp(tokens[1], nick, strlen(nick))) {
// Not our 'nick', continue
continue;