Avoid sending packets for 3 additional spammy ingame scripts

This commit is contained in:
David Cernat 2016-10-26 12:43:26 +03:00
parent 749c6db49e
commit c99c3b1486

View file

@ -230,10 +230,15 @@ void Main::PressedKey(int key)
// should be ignored because of their potential for spam
bool Main::isValidPacketScript(std::string script)
{
static const int invalidPacketScriptsCount = 2;
static const int invalidPacketScriptsCount = 5;
static const std::string invalidPacketScripts[invalidPacketScriptsCount] = {
// Spammy shorts
"OutsideBanner",
"sleeperScript"
"sleeperScript",
"dreamer_talkerEnable",
// Spammy floats
"Float",
"SignRotate"
};
for (int i = 0; i < invalidPacketScriptsCount; i++)