mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 23:21:20 -04:00
Avoid sending packets for 3 additional spammy ingame scripts
This commit is contained in:
parent
749c6db49e
commit
c99c3b1486
@ -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…
x
Reference in New Issue
Block a user