diff options
author | Luke Bratch <luke@bratch.co.uk> | 2019-12-22 16:01:16 +0000 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2019-12-22 16:01:16 +0000 |
commit | 85dd88a180043e991c19a4c93a6ce5c7fe0a6e88 (patch) | |
tree | 2866cf5772eb3e0e2da4be0a86fc5a07b499b174 /replay.c | |
parent | 2385f7b944bb22acd85e6c089e509880a45a2cb1 (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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |