From 5fad4ae6ca602a96db4977dbee03453718718c05 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 17 May 2026 10:51:44 +0500 Subject: [PATCH] engine: client: mark rcon and connect commands privileged --- engine/client/cl_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index 6ab68ad0..8e28e4e9 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -3549,11 +3549,11 @@ static void CL_InitLocal( void ) Cmd_AddCommand ("levelshot", CL_LevelShot_f, "same as \"screenshot\", used for create plaque images" ); Cmd_AddCommand ("saveshot", CL_GenericShot_f, "used for create save previews with LoadGame menu" ); - Cmd_AddCommand ("connect", CL_Connect_f, "connect to a server by hostname" ); + Cmd_AddRestrictedCommand ("connect", CL_Connect_f, "connect to a server by hostname" ); Cmd_AddCommand ("reconnect", CL_Reconnect_f, "reconnect to current level" ); Cmd_AddCommand ("retry", CL_Retry_f, "retry connection to last server" ); - Cmd_AddCommand ("rcon", CL_Rcon_f, "sends a command to the server console (rcon_password and rcon_address required)" ); + Cmd_AddRestrictedCommand ("rcon", CL_Rcon_f, "sends a command to the server console (rcon_password and rcon_address required)" ); Cmd_AddCommand( "richpresence_gamemode", Cmd_Null_f, "compatibility command, does nothing" ); Cmd_AddCommand( "richpresence_update", Cmd_Null_f, "compatibility command, does nothing" );