forked from teamnwah/openmw-tes3coop
Avoid sending packets for 3 additional spammy ingame scripts
This commit is contained in:
parent
749c6db49e
commit
c99c3b1486
1 changed files with 7 additions and 2 deletions
|
@ -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++)
|
||||
|
|
Loading…
Reference in a new issue