summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-10-02 18:58:41 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-10-02 18:58:41 +0100
commitbe3913f22cc03a6d804d720fb0d3efcc337c4150 (patch)
tree834bd809637a0c0e9246551357792e94dd9338fa
parentbaa042fac89b9960de59b8d9a24c6791365ec17d (diff)
"LOG_MODE" should be "type == LOG_MODE" in logging.c.
-rw-r--r--TODO2
-rw-r--r--logging.c2
2 files changed, 1 insertions, 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)) {