Avoid sending packets for 9 more ingame scripts

This commit is contained in:
David Cernat 2016-10-26 21:33:13 +03:00
parent 2032bf9cad
commit 65363b0dd1

View file

@ -230,18 +230,28 @@ void Main::PressedKey(int key)
// should be ignored because of their potential for spam
bool Main::isValidPacketScript(std::string script)
{
static const int invalidPacketScriptsCount = 7;
static const int invalidPacketScriptsCount = 16;
static const std::string invalidPacketScripts[invalidPacketScriptsCount] = {
// Spammy shorts
"OutsideBanner",
"sleeperScript",
"dreamer_talkerEnable",
"drenSlaveOwners",
"ahnassiScript",
"FaluraScript",
"hlormarScript",
// Spammy floats
"Float",
"SignRotate",
// Spammy globals
"wraithguardScript",
// Spammy globals leading to crashes
"LegionUniform",
"OrdinatorUniform"
"OrdinatorUniform",
"LorkhanHeart",
"ouch_keening",
"ouch_sunder",
"ouch_wraithguard"
};
for (int i = 0; i < invalidPacketScriptsCount; i++)