Skip to content

Commit

Permalink
Merge pull request #994 from osm/update-remote-capabilities
Browse files Browse the repository at this point in the history
Update defaults for cl_remote_capabilities
  • Loading branch information
tcsabina authored Jan 12, 2025
2 parents 730edc1 + 94080d5 commit f39eb14
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion help_variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -2522,7 +2522,7 @@
]
},
"cl_remote_capabilities": {
"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",
"default": "+attack,-attack,alias,bf,changing,cmd,color,download,exec,fullserverinfo,impulse,infoset,ktx_infoset,ktx_sinfoset,nextul,on_admin,on_connect,on_connect_ctf,on_connect_ffa,on_enter,on_enter_ctf,on_enter_ffa,on_matchend,on_matchstart,on_observe,on_observe_ctf,on_observe_ffa,on_spec_enter,on_spec_enter_ctf,on_spec_enter_ffa,on_spec_matchend,on_spec_matchstart,on_unadmin,packet,play,rate,reconnect,say,sinfoset,skin,skins,team,tempalias,track,wait",
"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.",
"group-id": "9",
"type": "string"
Expand Down
13 changes: 8 additions & 5 deletions src/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,14 @@ cvar_t cl_warncmd = {"cl_warncmd", "1"};
cvar_t cl_warnexec = {"cl_warnexec", "1"};
cvar_t cl_curlybraces = {"cl_curlybraces", "0"};

#define REMOTE_CAPABILITIES "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"
#define REMOTE_CAPABILITIES "+attack,-attack,alias,bf,changing,cmd,color,download,exec,fullserverinfo," \
"impulse,infoset,ktx_infoset,ktx_sinfoset,nextul,on_admin,on_connect," \
"on_connect_ctf,on_connect_ffa,on_enter,on_enter_ctf,on_enter_ffa,on_matchend," \
"on_matchstart,on_observe,on_observe_ctf,on_observe_ffa,on_spec_enter," \
"on_spec_enter_ctf,on_spec_enter_ffa,on_spec_matchend,on_spec_matchstart," \
"on_unadmin,packet,play,rate,reconnect,say,sinfoset,skin,skins,team,tempalias," \
"track,wait"

static void OnChange_remote_capabilities(cvar_t *var, char *string, qbool *cancel);
cvar_t cl_remote_capabilities = {"cl_remote_capabilities", REMOTE_CAPABILITIES, 0,
OnChange_remote_capabilities};
Expand Down

0 comments on commit f39eb14

Please sign in to comment.