diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2020-04-24 21:54:58 +0200 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2020-04-24 21:54:58 +0200 |
commit | 062ee46d307b8fddb99840bf83d37c838497c766 (patch) | |
tree | a648d12086fe85ebf67dcf5b9b81c88da55e1911 /server/src/serverLib | |
parent | remove rate limiter in join and chat for moderator (diff) | |
download | hackchat-062ee46d307b8fddb99840bf83d37c838497c766.tar.gz hackchat-062ee46d307b8fddb99840bf83d37c838497c766.zip |
fix mod not rate limited
Diffstat (limited to 'server/src/serverLib')
-rw-r--r-- | server/src/serverLib/MainServer.js | 4 |
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) { |