]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/command/banning.qc
Fix compilation units
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / banning.qc
index 42de51882e81d8f6f39d2d1585875028604ea3db..a73b09646f983467c7d5efa59d1ebc7896db5d1b 100644 (file)
@@ -1,17 +1,14 @@
 #include "banning.qh"
 
-#include <server/defs.qh>
-#include <server/miscfunctions.qh>
-#include <common/state.qh>
 #include <common/command/_mod.qh>
-#include "banning.qh"
-
-#include "common.qh"
-
-#include "../player.qh"
-#include "../ipban.qh"
-
+#include <common/state.qh>
+#include <common/stats.qh>
 #include <common/util.qh>
+#include <common/weapons/_all.qh>
+#include <server/command/banning.qh>
+#include <server/command/common.qh>
+#include <server/ipban.qh>
+#include <server/player.qh>
 
 // =====================================================
 //  Banning and kicking command code, written by Samual
@@ -44,10 +41,10 @@ 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("  '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.");
+                       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.");
                        LOG_HELP("See also: ^2banlist, kickban, unban^7");
                        return;
                }
@@ -111,11 +108,11 @@ 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("  '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),");
-                       LOG_HELP("  and 'reason' is the string to label the ban with as reason for banning.");
+                       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),");
+                       LOG_HELP("  and <reason> is the string to label the ban with as reason for banning.");
                        LOG_HELP("See also: ^2ban, banlist, unban^7");
                        return;
                }
@@ -149,8 +146,8 @@ 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("  'client' is the entity number or name of the player to mute.");
+                       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;
                }
@@ -195,8 +192,8 @@ void BanCommand_unban(int request, int argc)
                default:
                case CMD_REQUEST_USAGE:
                {
-                       LOG_HELP("Usage:^3 sv_cmd unban banid");
-                       LOG_HELP("  Where 'banid' is the ID of the ban of which to remove.");
+                       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;
                }
@@ -230,8 +227,8 @@ 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("  'client' is the entity number or name of the player to unmute.");
+                       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;
                }