diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2020-04-29 17:09:49 +0200 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2020-04-29 17:09:49 +0200 |
commit | e30b5bab56f57bfb1310a1842be05ed562a86b0f (patch) | |
tree | c94f0e5ee5775562509d4624cf1f1e79ca2fe20e /server/src/commands | |
parent | typo (diff) | |
download | hackchat-master.tar.gz hackchat-master.zip |
Diffstat (limited to 'server/src/commands')
-rw-r--r-- | server/src/commands/core/chat.js | 2 | ||||
-rw-r--r-- | server/src/commands/core/join.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/src/commands/core/chat.js b/server/src/commands/core/chat.js index c69f6cb..44a6575 100644 --- a/server/src/commands/core/chat.js +++ b/server/src/commands/core/chat.js @@ -33,7 +33,7 @@ export async function run(core, server, socket, data) { // check for spam const score = text.length / 83 / 4; - if (socket.address != "::ffff:172.18.0.1") { + if (socket.address != "::ffff:172.19.0.1") { if (server.police.frisk(socket.address, score) && !UAC.isModerator(socket.level)) { return server.reply({ cmd: 'warn', diff --git a/server/src/commands/core/join.js b/server/src/commands/core/join.js index b22bc7d..32d0b17 100644 --- a/server/src/commands/core/join.js +++ b/server/src/commands/core/join.js @@ -66,7 +66,7 @@ export function parseNickname(core, data) { // module main export async function run(core, server, socket, data) { // check for spam - if (socket.address != "::ffff:172.18.0.1") { + if (socket.address != "::ffff:172.19.0.1") { if (server.police.frisk(socket.address, 3)) { return server.reply({ cmd: 'warn', |