From 085e8f16b4a6a8b7be7a0a4a41f30a2e517bac45 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 31 Jul 2024 19:04:30 +1000 Subject: [PATCH] Always whitelist clientversion command as it is called after connection --- qcsrc/server/command/cmd.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/command/cmd.qc b/qcsrc/server/command/cmd.qc index 1e14def1d..4ed888fa2 100644 --- a/qcsrc/server/command/cmd.qc +++ b/qcsrc/server/command/cmd.qc @@ -1014,6 +1014,7 @@ void SV_ParseClientCommand(entity this, string command) { // exempt commands which are not subject to floodcheck case "begin": break; // handled by engine in host_cmd.c + case "clientversion": break; // requested during connection case "download": break; // handled by engine in cl_parse.c case "mv_getpicture": break; // handled by server in this file case "wpeditor": break; // handled by server in this file @@ -1047,7 +1048,7 @@ void SV_ParseClientCommand(entity this, string command) case "c2s": Net_ClientCommand(this, command); return; // handled by net.qh // on connection, client sends all of these - case "name": case "rate": case "rate_burstsize": case "playermodel": case "playerskin": case "clientversion": + case "name": case "rate": case "rate_burstsize": case "playermodel": case "playerskin": if(!IS_CLIENT(this)) break; // else fall through to default: flood control default: -- 2.39.2