mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 11:09:41 +00:00
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
|
// should be ignored because of their potential for spam
|
||||||
bool Main::isValidPacketScript(std::string script)
|
bool Main::isValidPacketScript(std::string script)
|
||||||
{
|
{
|
||||||
static const int invalidPacketScriptsCount = 2;
|
static const int invalidPacketScriptsCount = 5;
|
||||||
static const std::string invalidPacketScripts[invalidPacketScriptsCount] = {
|
static const std::string invalidPacketScripts[invalidPacketScriptsCount] = {
|
||||||
|
// Spammy shorts
|
||||||
"OutsideBanner",
|
"OutsideBanner",
|
||||||
"sleeperScript"
|
"sleeperScript",
|
||||||
|
"dreamer_talkerEnable",
|
||||||
|
// Spammy floats
|
||||||
|
"Float",
|
||||||
|
"SignRotate"
|
||||||
};
|
};
|
||||||
|
|
||||||
for (int i = 0; i < invalidPacketScriptsCount; i++)
|
for (int i = 0; i < invalidPacketScriptsCount; i++)
|
||||||
|
|
Loading…
Reference in a new issue