From: Alexander Barton Date: Mon, 2 Jan 2023 22:51:15 +0000 (+0100) Subject: Add "+DEBUG" to the version string only when configured with --enable-debug X-Git-Tag: rel-27-rc1~111 X-Git-Url: https://arthur.barton.de/gitweb/?p=ngircd-alex.git;a=commitdiff_plain;h=50114cd017a0a4799d8eb88cb2f53eafb7993c92 Add "+DEBUG" to the version string only when configured with --enable-debug The debug log messages are always available and a runtime option (since commit c7de505c), but the assert()'s are only active when ngIRCd was configured with the "--enable-debug" option. So only add "+DEBUG" to the version string when the latter is the case. --- diff --git a/src/ngircd/ngircd.c b/src/ngircd/ngircd.c index 76ea8d38..772d9db6 100644 --- a/src/ngircd/ngircd.c +++ b/src/ngircd/ngircd.c @@ -341,11 +341,13 @@ Fill_Version(void) strlcat(NGIRCd_VersionAddition, "CHARCONV", sizeof NGIRCd_VersionAddition); #endif +#ifdef DEBUG if (NGIRCd_VersionAddition[0]) strlcat(NGIRCd_VersionAddition, "+", sizeof NGIRCd_VersionAddition); strlcat(NGIRCd_VersionAddition, "DEBUG", sizeof NGIRCd_VersionAddition); +#endif #ifdef IDENTAUTH if (NGIRCd_VersionAddition[0]) strlcat(NGIRCd_VersionAddition, "+",