From: Mario Date: Wed, 31 Jul 2024 09:04:30 +0000 (+1000) Subject: Always whitelist clientversion command as it is called after connection X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fheads%2FMario%2Fclientversion_floodcontrol_fix;p=xonotic%2Fxonotic-data.pk3dir.git Always whitelist clientversion command as it is called after connection --- 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: