Compare commits

..

No commits in common. "a5a856073e9dc72f220964448fd85ff8beb93a06" and "9d3a9e6b89b2ca05b2fdc55d3fb497bc06d444cd" have entirely different histories.

View File

@ -41,21 +41,12 @@ public void OnConVarQueryFinished(QueryCookie cookie, int client, ConVarQueryRes
return; return;
if (result != ConVarQuery_Okay) if (result != ConVarQuery_Okay)
LogError("Could not query ConVar fps_max for %N", client); LogError("Could not query ConVar \"cvarName\" for %N", client);
int len = strlen(cvarValue);
for (int i = 0; i < len; i++)
{
if (!IsCharNumeric(cvarValue[i]))
{
KickClient(client, "Invalid fps_max Format");
return;
}
}
//fps_max 0 is probably acceptable //fps_max 0 is probably acceptable
if (StringToInt(cvarValue) == 0) if (StringToInt(cvarValue) == 0)
return; return;
if (StringToInt(cvarValue) < 58) if (StringToInt(cvarValue) < 58)
KickClient(client, "Your fps_max is invalid, please set it to a higher value (>59)"); KickClient(client, "Your fps_max is invalid, please set it to a higher value (>59)");
} }