From 78dab31a66cbc2a330aa2bb790f1696f24f4326a Mon Sep 17 00:00:00 2001 From: fusion32 Date: Fri, 29 Aug 2025 15:43:11 -0300 Subject: fix log date logic --- src/writer.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/writer.cc') diff --git a/src/writer.cc b/src/writer.cc index 093711e..ee712ba 100644 --- a/src/writer.cc +++ b/src/writer.cc @@ -123,9 +123,9 @@ void Log(const char *ProtocolName, const char *Text, ...){ return; } - bool WriteDate = (strcmp(ProtocolName, "bugreport") == 0) - || (strcmp(ProtocolName, "client-error") == 0) - || (strcmp(ProtocolName, "load") == 0); + bool WriteDate = (strcmp(ProtocolName, "bugreport") != 0) + && (strcmp(ProtocolName, "client-error") != 0) + && (strcmp(ProtocolName, "load") != 0); char Output[256]; va_list ap; -- cgit v1.2.3