From be3913f22cc03a6d804d720fb0d3efcc337c4150 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Wed, 2 Oct 2019 18:58:41 +0100 Subject: "LOG_MODE" should be "type == LOG_MODE" in logging.c. --- TODO | 2 -- logging.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/TODO b/TODO index b5702d8..a74bd7d 100644 --- a/TODO +++ b/TODO @@ -4,8 +4,6 @@ Configurable rotation of replay and debug logs. Add a make install/uninstall/etc., add an "INSTALL" file, include a dependency listing. -"|| LOG_MODE" should be "type == LOG_MODE" in logging.c. - macOS compiler may need limits.h included in structures.h. replaymode = "lastspoke" causes huge amounts of spam from extractnickfromprefix() and friends in full debug mode. diff --git a/logging.c b/logging.c index 2079822..ed4cfcf 100644 --- a/logging.c +++ b/logging.c @@ -374,7 +374,7 @@ int logline(char *str, struct ircdstate *ircdstate, char *basedir, int type) { } } } else if (type == LOG_JOINPART || type == LOG_TOPIC || type == LOG_NETWORK || - type == LOG_QUIT || type == LOG_NICK || LOG_MODE) { + type == LOG_QUIT || type == LOG_NICK || type == LOG_MODE) { // Prepend the time string char line2[MAXCHAR]; if (!snprintf(line2, MAXCHAR, "%s %s", timestr, line)) { -- cgit v1.2.3