From 062ee46d307b8fddb99840bf83d37c838497c766 Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Fri, 24 Apr 2020 21:54:58 +0200 Subject: fix mod not rate limited --- server/src/serverLib/MainServer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/serverLib/MainServer.js b/server/src/serverLib/MainServer.js index 35a0d3e..d8ea6ea 100644 --- a/server/src/serverLib/MainServer.js +++ b/server/src/serverLib/MainServer.js @@ -164,7 +164,9 @@ class MainServer extends WsServer { } // Penalize here, but don't do anything about it - this.police.frisk(socket.address, 1); + if (!socker.mod) { + this.police.frisk(socket.address, 1); + } // Ignore ridiculously large packets if (data.length > 65536) { -- cgit v1.2.1