simplify version cmd using PROGNAME
authorMartin Taibr <taibr.martin@gmail.com>
Thu, 13 Feb 2020 18:08:00 +0000 (19:08 +0100)
committerMartin Taibr <taibr.martin@gmail.com>
Thu, 13 Feb 2020 18:08:00 +0000 (19:08 +0100)
qcsrc/common/debug.qh

index 3091aec..e5012f8 100644 (file)
@@ -224,13 +224,7 @@ GENERIC_COMMAND(version, "Print the current version", false)
        {
                case CMD_REQUEST_COMMAND:
                {
-#if defined(CSQC)
-                       LOG_INFO("CSQC version: ", WATERMARK);
-#elif defined(SVQC)
-                       LOG_INFO("SVQC version: ", WATERMARK);
-#elif defined(MENUQC)
-                       LOG_INFO("MENUQC version: ", WATERMARK);
-#endif
+                       LOG_INFO(PROGNAME, " version: ", WATERMARK);
                        return;
                }
                default: