aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-04-24 21:54:58 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2020-04-24 21:54:58 +0200
commit062ee46d307b8fddb99840bf83d37c838497c766 (patch)
treea648d12086fe85ebf67dcf5b9b81c88da55e1911 /server
parentremove rate limiter in join and chat for moderator (diff)
downloadhackchat-062ee46d307b8fddb99840bf83d37c838497c766.tar.gz
hackchat-062ee46d307b8fddb99840bf83d37c838497c766.zip
fix mod not rate limited
Diffstat (limited to 'server')
-rw-r--r--server/src/serverLib/MainServer.js4
1 files changed, 3 insertions, 1 deletions
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) {