]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/command/banning.qc
Standardize command usage messages:
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / banning.qc
index 99a7756e162138b36ece7a1b16ffe98ea6334296..728c344a1bf429f368fce23cad55c959eb59d7db 100644 (file)
@@ -41,7 +41,7 @@ void BanCommand_ban(int request, int argc, string command)
                        LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0));
                case CMD_REQUEST_USAGE:
                {
-                       LOG_HELP("Usage:^3 sv_cmd ban address [bantime] [reason]");
+                       LOG_HELP("Usage:^3 sv_cmd ban <address> [<bantime>] [<reason>]");
                        LOG_HELP("  'address' is the IP address or range of the player to ban,");
                        LOG_HELP("  'bantime' is the amount of time that the ban is active (default if not provided),");
                        LOG_HELP("  and 'reason' is the string to label the ban with as reason for banning.");
@@ -108,7 +108,7 @@ void BanCommand_kickban(int request, int argc, string command)
                        LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0));
                case CMD_REQUEST_USAGE:
                {
-                       LOG_HELP("Usage:^3 sv_cmd kickban client [bantime] [masksize] [reason]");
+                       LOG_HELP("Usage:^3 sv_cmd kickban <client> [<bantime>] [<masksize>] [<reason>]");
                        LOG_HELP("  'client' is the entity number or name of the player to ban,");
                        LOG_HELP("  'bantime' is the amount of time that the ban is active (default if not provided),");
                        LOG_HELP("  'masksize' is the range of the IP address (1-thru-4, default if not provided),");
@@ -146,7 +146,7 @@ void BanCommand_mute(int request, int argc, string command)  // TODO: Add a sort
                        LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0));
                case CMD_REQUEST_USAGE:
                {
-                       LOG_HELP("Usage:^3 sv_cmd mute client");
+                       LOG_HELP("Usage:^3 sv_cmd mute <client>");
                        LOG_HELP("  'client' is the entity number or name of the player to mute.");
                        LOG_HELP("See also: ^2unmute^7");
                        return;
@@ -192,7 +192,7 @@ void BanCommand_unban(int request, int argc)
                default:
                case CMD_REQUEST_USAGE:
                {
-                       LOG_HELP("Usage:^3 sv_cmd unban banid");
+                       LOG_HELP("Usage:^3 sv_cmd unban <banid>");
                        LOG_HELP("  Where 'banid' is the ID of the ban of which to remove.");
                        LOG_HELP("See also: ^2ban, banlist, kickban^7");
                        return;
@@ -227,7 +227,7 @@ void BanCommand_unmute(int request, int argc)
                        LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0));
                case CMD_REQUEST_USAGE:
                {
-                       LOG_HELP("Usage:^3 sv_cmd unmute client");
+                       LOG_HELP("Usage:^3 sv_cmd unmute <client>");
                        LOG_HELP("  'client' is the entity number or name of the player to unmute.");
                        LOG_HELP("See also: ^2mute^7");
                        return;