Skip to content

Commit 8801e97

Browse files
authored
Merge pull request #984 from osm/allow-server-attack
Allow server to stufftext {+,-}attack
2 parents 5a46615 + 989ec70 commit 8801e97

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

help_variables.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2522,7 +2522,7 @@
25222522
]
25232523
},
25242524
"cl_remote_capabilities": {
2525-
"default": "alias,bf,changing,cmd,color,download,exec,fullserverinfo,impulse,infoset,ktx_infoset,ktx_sinfoset,nextul,on_enter,on_enter_ctf,on_enter_ffa,on_spec_enter,on_spec_enter_ctf,on_spec_enter_ffa,packet,play,reconnect,say,sinfoset,skin,skins,team,tempalias,track,wait",
2525+
"default": "alias,bf,changing,cmd,color,download,exec,fullserverinfo,impulse,infoset,ktx_infoset,ktx_sinfoset,nextul,on_enter,on_enter_ctf,on_enter_ffa,on_spec_enter,on_spec_enter_ctf,on_spec_enter_ffa,packet,play,rate,reconnect,say,sinfoset,skin,skins,team,tempalias,track,wait,+attack,-attack",
25262526
"desc": "This variable controls which commands and variables a server is allowed to execute or set on the client. Input a comma-separated list of commands and variables to toggle access. The default values are adapted for KTX use.",
25272527
"group-id": "9",
25282528
"type": "string"

src/cmd.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ cvar_t cl_curlybraces = {"cl_curlybraces", "0"};
6161
#define REMOTE_CAPABILITIES "alias,bf,changing,cmd,color,download,exec,fullserverinfo,impulse," \
6262
"infoset,ktx_infoset,ktx_sinfoset,nextul,on_enter," \
6363
"on_enter_ctf,on_enter_ffa,on_spec_enter,on_spec_enter_ctf," \
64-
"on_spec_enter_ffa,packet,play,reconnect,say,sinfoset,skin," \
65-
"skins,team,tempalias,track,wait"
64+
"on_spec_enter_ffa,packet,play,rate,reconnect,say,sinfoset,skin," \
65+
"skins,team,tempalias,track,wait,+attack,-attack"
6666
static void OnChange_remote_capabilities(cvar_t *var, char *string, qbool *cancel);
6767
cvar_t cl_remote_capabilities = {"cl_remote_capabilities", REMOTE_CAPABILITIES, 0,
6868
OnChange_remote_capabilities};

0 commit comments

Comments
 (0)