Xonotic
|
#include "banning.qh"
#include <common/command/_mod.qh>
#include <common/state.qh>
#include <common/stats.qh>
#include <common/util.qh>
#include <common/weapons/_all.qh>
#include <server/command/common.qh>
#include <server/ipban.qh>
#include <server/player.qh>
Go to the source code of this file.
Macros | |
#define | BAN_COMMAND(name, function, description) { if (strtolower(description) != "") { LOG_INFO(" ^2", name, "^7: ", description); } } |
#define | BAN_COMMAND(name, function, description) { if (name == strtolower(argv(0))) { function; return true; } } |
#define | BAN_COMMAND(name, function, description) { if (name == strtolower(argv(1))) { function; return true; } } |
#define | BAN_COMMAND(name, function, description) { if (strtolower(description) != "") { CMD_Write_Alias("qc_cmd_sv", name, description); } } |
#define | BAN_COMMANDS(request, arguments, command) |
Functions | |
float | BanCommand (string command) |
void | BanCommand_ban (int request, int argc, string command) |
void | BanCommand_banlist (int request) |
void | BanCommand_kickban (int request, int argc, string command) |
float | BanCommand_macro_command (int argc, string command) |
void | BanCommand_macro_help () |
float | BanCommand_macro_usage (int argc) |
void | BanCommand_macro_write_aliases (float fh) |
void | BanCommand_mute (int request, int argc, string command) |
void | BanCommand_unban (int request, int argc) |
void | BanCommand_unmute (int request, int argc) |
#define BAN_COMMAND | ( | name, | |
function, | |||
description | |||
) | { if (strtolower(description) != "") { LOG_INFO(" ^2", name, "^7: ", description); } } |
#define BAN_COMMAND | ( | name, | |
function, | |||
description | |||
) | { if (name == strtolower(argv(0))) { function; return true; } } |
#define BAN_COMMAND | ( | name, | |
function, | |||
description | |||
) | { if (name == strtolower(argv(1))) { function; return true; } } |
#define BAN_COMMAND | ( | name, | |
function, | |||
description | |||
) | { if (strtolower(description) != "") { CMD_Write_Alias("qc_cmd_sv", name, description); } } |
#define BAN_COMMANDS | ( | request, | |
arguments, | |||
command | |||
) |
Definition at line 267 of file banning.qc.
Referenced by BanCommand_macro_command(), BanCommand_macro_help(), BanCommand_macro_usage(), and BanCommand_macro_write_aliases().
Definition at line 316 of file banning.qc.
References BanCommand_macro_command(), and tokenize_console.
Referenced by GameCommand().
Definition at line 18 of file banning.qc.
References argv(), autocvar_g_ban_default_bantime, Ban_Insert(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, GET_BAN_ARG, GET_BAN_REASON, LOG_HELP, and LOG_INFOF.
Definition at line 54 of file banning.qc.
References Ban_View(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, and LOG_HELP.
Definition at line 75 of file banning.qc.
References argv(), autocvar_g_ban_default_bantime, autocvar_g_ban_default_masksize, Ban_KickBanClient(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, entity(), GET_BAN_ARG, GET_BAN_REASON, GetClientErrorString, GetIndexedEntity(), LOG_HELP, LOG_INFO, LOG_INFOF, next_token, and VerifyKickableEntity().
Definition at line 285 of file banning.qc.
References BAN_COMMANDS, and CMD_REQUEST_COMMAND.
Referenced by BanCommand().
void BanCommand_macro_help | ( | ) |
Definition at line 276 of file banning.qc.
References BAN_COMMANDS.
Referenced by GameCommand().
Definition at line 296 of file banning.qc.
References BAN_COMMANDS, and CMD_REQUEST_USAGE.
Referenced by GameCommand().
Definition at line 307 of file banning.qc.
References BAN_COMMANDS.
Referenced by GENERIC_COMMAND().
Definition at line 122 of file banning.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, CS(), entity(), GetClientErrorString, GetFilteredEntity(), LOG_HELP, LOG_INFO, LOG_INFOF, and VerifyClientEntity().
Definition at line 157 of file banning.qc.
References argv(), Ban_Delete(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, LOG_HELP, stof(), and substring().
Definition at line 203 of file banning.qc.
References argv(), CMD_REQUEST_COMMAND, CMD_REQUEST_USAGE, CS(), entity(), GetClientErrorString, GetFilteredEntity(), LOG_HELP, LOG_INFO, LOG_INFOF, and VerifyClientEntity().