X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fcommand%2Fbanning.qc;h=a73b09646f983467c7d5efa59d1ebc7896db5d1b;hb=e08b3263acb01d68bb72346b762afb0ba262ecec;hp=42de51882e81d8f6f39d2d1585875028604ea3db;hpb=e875ef0ccd65ad36b9c1e87a2f759378d501b205;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/command/banning.qc b/qcsrc/server/command/banning.qc index 42de51882..a73b09646 100644 --- a/qcsrc/server/command/banning.qc +++ b/qcsrc/server/command/banning.qc @@ -1,17 +1,14 @@ #include "banning.qh" -#include -#include -#include #include -#include "banning.qh" - -#include "common.qh" - -#include "../player.qh" -#include "../ipban.qh" - +#include +#include #include +#include +#include +#include +#include +#include // ===================================================== // 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
[] []"); + LOG_HELP("
is the IP address or range of the player to ban,"); + LOG_HELP(" is the amount of time that the ban is active (default if not provided),"); + LOG_HELP(" and 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 [] [] []"); + LOG_HELP(" is the entity number or name of the player to ban,"); + LOG_HELP(" is the amount of time that the ban is active (default if not provided),"); + LOG_HELP(" is the range of the IP address (1-thru-4, default if not provided),"); + LOG_HELP(" and 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 "); + LOG_HELP(" 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 "); + LOG_HELP(" Where 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 "); + LOG_HELP(" is the entity number or name of the player to unmute."); LOG_HELP("See also: ^2mute^7"); return; }