diff options
author | WlodekM <[email protected]> | 2024-08-09 20:57:27 +0300 |
---|---|---|
committer | WlodekM <[email protected]> | 2024-08-09 20:57:27 +0300 |
commit | 2153957b0905cdda3d74c4e062bb75dbd96f96e7 (patch) | |
tree | 27f57878665516402bfefd75fb434671fc6cd74e | |
parent | 992a2cfd9af2820ced6effa0f28f0ba99943660f (diff) |
oops
-rw-r--r-- | index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js index 10c7a88..f867b09 100644 --- a/index.js +++ b/index.js @@ -193,7 +193,7 @@ ws.on("connection", (socket, request) => { } return; } - if (server.config.requireLogin) return socket.send("This server requires you to log in, use /login <username> <password> to log in or /register <username> <password> to make an account."); + if (server.config.requireLogin && user.guest) return socket.send("This server requires you to log in, use /login <username> <password> to log in or /register <username> <password> to make an account."); profanity.options.grawlixChar = "*"; if (!server.config.profanity) rawData = profanity.censor(String(rawData)); if (rawData.length < 1) return socket.send("Error: message too short!"); |