diff options
Diffstat (limited to 'server/src/commands/core/chat.js')
-rw-r--r-- | server/src/commands/core/chat.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/server/src/commands/core/chat.js b/server/src/commands/core/chat.js index fad9ea0..c69f6cb 100644 --- a/server/src/commands/core/chat.js +++ b/server/src/commands/core/chat.js @@ -33,11 +33,13 @@ export async function run(core, server, socket, data) { // check for spam const score = text.length / 83 / 4; - if (server.police.frisk(socket.address, score) && !UAC.isModerator(socket.level)) { - return server.reply({ - cmd: 'warn', - text: 'You are sending too much text. Wait a moment and try again.\nPress the up arrow key to restore your last message.', - }, socket); + if (socket.address != "::ffff:172.18.0.1") { + if (server.police.frisk(socket.address, score) && !UAC.isModerator(socket.level)) { + return server.reply({ + cmd: 'warn', + text: 'You are sending too much text. Wait a moment and try again.\nPress the up arrow key to restore your last message.', + }, socket); + } } // build chat payload |