aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/commands/core/join.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/commands/core/join.js')
-rw-r--r--server/src/commands/core/join.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/server/src/commands/core/join.js b/server/src/commands/core/join.js
index 719fa51..b22bc7d 100644
--- a/server/src/commands/core/join.js
+++ b/server/src/commands/core/join.js
@@ -66,11 +66,13 @@ export function parseNickname(core, data) {
// module main
export async function run(core, server, socket, data) {
// check for spam
- if (server.police.frisk(socket.address, 3) && !UAC.isModerator(socket.level)) {
- return server.reply({
- cmd: 'warn',
- text: 'You are joining channels too fast. Wait a moment and try again.',
- }, socket);
+ if (socket.address != "::ffff:172.18.0.1") {
+ if (server.police.frisk(socket.address, 3)) {
+ return server.reply({
+ cmd: 'warn',
+ text: 'You are joining channels too fast. Wait a moment and try again.',
+ }, socket);
+ }
}
// calling socket already in a channel