From c99c3b14867f2d56626f5458b4eb67d93af568fe Mon Sep 17 00:00:00 2001 From: David Cernat Date: Wed, 26 Oct 2016 12:43:26 +0300 Subject: [PATCH] Avoid sending packets for 3 additional spammy ingame scripts --- apps/openmw/mwmp/Main.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwmp/Main.cpp b/apps/openmw/mwmp/Main.cpp index 02aa47bbd..a17ca63a6 100644 --- a/apps/openmw/mwmp/Main.cpp +++ b/apps/openmw/mwmp/Main.cpp @@ -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++)