From 99aaa10363e66083242afa6528c14ef883d99177 Mon Sep 17 00:00:00 2001 From: Hri7566 Date: Tue, 13 Apr 2021 17:35:41 -0400 Subject: [PATCH] nothing happened --- config.js | 4 ++-- src/Message.js | 2 +- src/Room.js | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/config.js b/config.js index c6b2a34..0916af6 100644 --- a/config.js +++ b/config.js @@ -1,5 +1,5 @@ module.exports = Object.seal({ - port: 8443, + port: 8080, motd: "big th0nk", _id_PrivateKey: process.env.SALT, defaultUsername: "Anonymous", @@ -10,7 +10,7 @@ module.exports = Object.seal({ // defaultLobbyColor2: "#801014", defaultLobbyColor2: "#801014", adminpass: process.env.ADMINPASS, - ssl: true, + ssl: false, defaultRoomSettings: { color: "#000000", crownsolo: false, diff --git a/src/Message.js b/src/Message.js index fa65ea3..a1ccef2 100644 --- a/src/Message.js +++ b/src/Message.js @@ -190,7 +190,7 @@ module.exports = (cl) => { if(!cl.quotas.userset.attempt()) return; cl.user.name = msg.set.name; let user = new User(cl); - Database.getUserData().then((usr) => { + Database.getUserData(cl, cl.server).then((usr) => { let dbentry = user.userdb.get(cl.user._id); if (!dbentry) return; dbentry.name = msg.set.name; diff --git a/src/Room.js b/src/Room.js index 101ad23..924c15d 100644 --- a/src/Room.js +++ b/src/Room.js @@ -129,7 +129,9 @@ class Room extends EventEmitter { } this.connections.forEach((usr) => { - this.server.connections.get(usr.connectionid).sendArray([this.fetchData(usr, cl)]) + let u = this.fetchData(usr, cl); + u.ip = undefined; + this.server.connections.get(usr.connectionid).sendArray([u]) }); this.server.updateRoom(this.fetchData());