Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
banning.qh File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GET_BAN_ARG(v, d)
#define GET_BAN_REASON(v, d)

Functions

void BanCommand_macro_help ()
float BanCommand_macro_usage (int argc)
void BanCommand_macro_write_aliases (float fh)

Variables

float autocvar_g_ban_default_bantime
float autocvar_g_ban_default_masksize
float autocvar_g_ban_sync_interval
float autocvar_g_ban_sync_timeout
string autocvar_g_ban_sync_trusted_servers
bool autocvar_g_ban_sync_trusted_servers_verify
string autocvar_g_ban_sync_uri
bool autocvar_g_ban_telluser = true
string autocvar_g_banned_list
bool autocvar_g_banned_list_idmode
string autocvar_g_chatban_list
string autocvar_g_playban_list
bool autocvar_g_playban_minigames
string autocvar_g_voteban_list

Macro Definition Documentation

◆ GET_BAN_ARG

#define GET_BAN_ARG ( v,
d )
Value:
if (argc > reason_arg) { if ((v = stof(argv(reason_arg))) != 0) ++reason_arg; else v = d; } else { v = d; }
float stof(string val,...)
string argv(float n)

Definition at line 18 of file banning.qh.

Referenced by BanCommand_ban(), and BanCommand_kickban().

◆ GET_BAN_REASON

#define GET_BAN_REASON ( v,
d )
Value:
if (argc > reason_arg) v = substring(command, argv_start_index(reason_arg), strlen(command) - argv_start_index(reason_arg)); else v = d;
#define strlen
#define argv_start_index
string substring(string s, float start, float length)

Definition at line 19 of file banning.qh.

Referenced by BanCommand_ban(), and BanCommand_kickban().

Function Documentation

◆ BanCommand_macro_help()

void BanCommand_macro_help ( )

Definition at line 480 of file banning.qc.

481{
482 #define BAN_COMMAND(name, function, description) \
483 { if (strtolower(description) != "") { LOG_INFO(" ^2", name, "^7: ", description); } }
484
485 BAN_COMMANDS(0, 0, "");
486#undef BAN_COMMAND
487}
#define BAN_COMMANDS(request, arguments, command)
Definition banning.qc:467

References BAN_COMMANDS.

Referenced by GameCommand().

◆ BanCommand_macro_usage()

float BanCommand_macro_usage ( int argc)

Definition at line 500 of file banning.qc.

501{
502 #define BAN_COMMAND(name, function, description) \
503 { if (name == strtolower(argv(1))) { function; return true; } }
504
506#undef BAN_COMMAND
507
508 return false;
509}
const int CMD_REQUEST_USAGE
Definition command.qh:4

References BAN_COMMANDS, and CMD_REQUEST_USAGE.

Referenced by GameCommand().

◆ BanCommand_macro_write_aliases()

void BanCommand_macro_write_aliases ( float fh)

Definition at line 511 of file banning.qc.

512{
513 #define BAN_COMMAND(name, function, description) \
514 { if (strtolower(description) != "") { CMD_Write_Alias("qc_cmd_sv", name, description); } }
515
516 BAN_COMMANDS(0, 0, "");
517#undef BAN_COMMAND
518}

References BAN_COMMANDS.

Referenced by GENERIC_COMMAND().

Variable Documentation

◆ autocvar_g_ban_default_bantime

float autocvar_g_ban_default_bantime

Definition at line 3 of file banning.qh.

Referenced by BanCommand_ban(), BanCommand_kickban(), and VoteCommand_parse().

◆ autocvar_g_ban_default_masksize

float autocvar_g_ban_default_masksize

Definition at line 4 of file banning.qh.

Referenced by BanCommand_kickban(), MUTATOR_HOOKFUNCTION(), and VoteCommand_parse().

◆ autocvar_g_ban_sync_interval

float autocvar_g_ban_sync_interval

Definition at line 5 of file banning.qh.

Referenced by OnlineBanList_Think(), and OnlineBanList_URI_Get_Callback().

◆ autocvar_g_ban_sync_timeout

float autocvar_g_ban_sync_timeout

Definition at line 6 of file banning.qh.

Referenced by OnlineBanList_Think(), and OnlineBanList_URI_Get_Callback().

◆ autocvar_g_ban_sync_trusted_servers

string autocvar_g_ban_sync_trusted_servers

Definition at line 7 of file banning.qh.

Referenced by OnlineBanList_Think().

◆ autocvar_g_ban_sync_trusted_servers_verify

bool autocvar_g_ban_sync_trusted_servers_verify

Definition at line 8 of file banning.qh.

Referenced by OnlineBanList_URI_Get_Callback().

◆ autocvar_g_ban_sync_uri

string autocvar_g_ban_sync_uri

◆ autocvar_g_ban_telluser

bool autocvar_g_ban_telluser = true

Definition at line 10 of file banning.qh.

Referenced by Ban_MaybeEnforceBan().

◆ autocvar_g_banned_list

string autocvar_g_banned_list

Definition at line 11 of file banning.qh.

Referenced by Ban_LoadBans().

◆ autocvar_g_banned_list_idmode

bool autocvar_g_banned_list_idmode

Definition at line 12 of file banning.qh.

Referenced by Ban_IsClientBanned().

◆ autocvar_g_chatban_list

string autocvar_g_chatban_list

Definition at line 13 of file banning.qh.

Referenced by BanCommand_mute(), BanCommand_unmute(), and ClientConnect().

◆ autocvar_g_playban_list

◆ autocvar_g_playban_minigames

bool autocvar_g_playban_minigames

Definition at line 15 of file banning.qh.

Referenced by BanCommand_playban(), ClientCommand_minigame(), and invite_minigame().

◆ autocvar_g_voteban_list