From: terencehill Date: Fri, 10 Mar 2023 00:14:33 +0000 (+0100) Subject: Print the "Incorrect parameters for ..." message with the more appropriated LOG_HELPF X-Git-Tag: xonotic-v0.8.6~153 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5435368a6db090465f12c51f1b2ee8a4073ba3fe;p=xonotic%2Fxonotic-data.pk3dir.git Print the "Incorrect parameters for ..." message with the more appropriated LOG_HELPF --- diff --git a/qcsrc/server/command/sv_cmd.qc b/qcsrc/server/command/sv_cmd.qc index a01c82784..7627e177b 100644 --- a/qcsrc/server/command/sv_cmd.qc +++ b/qcsrc/server/command/sv_cmd.qc @@ -147,7 +147,7 @@ void GameCommand_adminmsg(int request, int argc) } default: - LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0)); + LOG_HELPF("Incorrect parameters for ^2%s^7", argv(0)); case CMD_REQUEST_USAGE: { LOG_HELP("Usage:^3 sv_cmd adminmsg \"\" []"); @@ -251,7 +251,7 @@ void GameCommand_anticheat(int request, int argc) } default: - LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0)); + LOG_HELPF("Incorrect parameters for ^2%s^7", argv(0)); case CMD_REQUEST_USAGE: { LOG_HELP("Usage:^3 sv_cmd anticheat "); @@ -458,7 +458,7 @@ void GameCommand_bot_cmd(int request, int argc, string command) } default: - LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0)); + LOG_HELPF("Incorrect parameters for ^2%s^7", argv(0)); case CMD_REQUEST_USAGE: { LOG_HELP("Usage:^3 sv_cmd bot_cmd []"); @@ -533,7 +533,7 @@ void GameCommand_database(int request, int argc) } default: - LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0)); + LOG_HELPF("Incorrect parameters for ^2%s^7", argv(0)); case CMD_REQUEST_USAGE: { LOG_HELP("Usage:^3 sv_cmd database "); @@ -576,7 +576,7 @@ void GameCommand_defer_clear(int request, int argc) } default: - LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0)); + LOG_HELPF("Incorrect parameters for ^2%s^7", argv(0)); case CMD_REQUEST_USAGE: { LOG_HELP("Usage:^3 sv_cmd defer_clear "); @@ -636,7 +636,7 @@ void GameCommand_delrec(int request, int argc) // perhaps merge later with reco } default: - LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0)); + LOG_HELPF("Incorrect parameters for ^2%s^7", argv(0)); case CMD_REQUEST_USAGE: { LOG_HELP("Usage:^3 sv_cmd delrec []"); @@ -804,7 +804,7 @@ void GameCommand_gametype(int request, int argc) } default: - LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0)); + LOG_HELPF("Incorrect parameters for ^2%s^7", argv(0)); case CMD_REQUEST_USAGE: { LOG_HELP("Usage:^3 sv_cmd gametype "); @@ -869,7 +869,7 @@ void GameCommand_gettaginfo(int request, int argc) } default: - LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0)); + LOG_HELPF("Incorrect parameters for ^2%s^7", argv(0)); case CMD_REQUEST_USAGE: { LOG_HELP("Usage:^3 sv_cmd gettaginfo [] []"); @@ -928,7 +928,7 @@ void GameCommand_animbench(int request, int argc) } default: - LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0)); + LOG_HELPF("Incorrect parameters for ^2%s^7", argv(0)); case CMD_REQUEST_USAGE: { LOG_HELP("Usage:^3 sv_cmd animbench "); @@ -957,7 +957,7 @@ void GameCommand_gotomap(int request, int argc) } default: - LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0)); + LOG_HELPF("Incorrect parameters for ^2%s^7", argv(0)); case CMD_REQUEST_USAGE: { LOG_HELP("Usage:^3 sv_cmd gotomap "); @@ -1164,7 +1164,7 @@ void GameCommand_moveplayer(int request, int argc) } default: - LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0)); + LOG_HELPF("Incorrect parameters for ^2%s^7", argv(0)); case CMD_REQUEST_USAGE: { LOG_HELP("Usage:^3 sv_cmd moveplayer "); @@ -1246,7 +1246,7 @@ void GameCommand_radarmap(int request, int argc) } default: - LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0)); + LOG_HELPF("Incorrect parameters for ^2%s^7", argv(0)); case CMD_REQUEST_USAGE: { LOG_HELP("Usage:^3 sv_cmd radarmap [--force] [--loop] [--quit] [--block | --trace | --sample | --lineblock] [--sharpen N] [--res W H] [--qual Q]"); @@ -1301,7 +1301,7 @@ void GameCommand_setbots(int request, int argc) } default: - LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0)); + LOG_HELPF("Incorrect parameters for ^2%s^7", argv(0)); case CMD_REQUEST_USAGE: { LOG_HELP("Usage:^3 sv_cmd setbots "); @@ -1447,7 +1447,7 @@ void GameCommand_stuffto(int request, int argc) } default: - LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0)); + LOG_HELPF("Incorrect parameters for ^2%s^7", argv(0)); case CMD_REQUEST_USAGE: { LOG_HELP("Usage:^3 sv_cmd stuffto \"\""); @@ -1628,7 +1628,7 @@ void GameCommand_trace(int request, int argc) } default: - LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0)); + LOG_HELPF("Incorrect parameters for ^2%s^7", argv(0)); case CMD_REQUEST_USAGE: { LOG_HELP("Usage:^3 sv_cmd trace [ ] []");