nothing happened

This commit is contained in:
Hri7566 2021-04-13 17:35:41 -04:00
parent 7f3decef88
commit 477e8bda5c
3 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,5 @@
module.exports = Object.seal({ module.exports = Object.seal({
port: 8443, port: 8080,
motd: "big th0nk", motd: "big th0nk",
_id_PrivateKey: process.env.SALT, _id_PrivateKey: process.env.SALT,
defaultUsername: "Anonymous", defaultUsername: "Anonymous",
@ -10,7 +10,7 @@ module.exports = Object.seal({
// defaultLobbyColor2: "#801014", // defaultLobbyColor2: "#801014",
defaultLobbyColor2: "#801014", defaultLobbyColor2: "#801014",
adminpass: process.env.ADMINPASS, adminpass: process.env.ADMINPASS,
ssl: true, ssl: false,
defaultRoomSettings: { defaultRoomSettings: {
color: "#000000", color: "#000000",
crownsolo: false, crownsolo: false,

View File

@ -190,7 +190,7 @@ module.exports = (cl) => {
if(!cl.quotas.userset.attempt()) return; if(!cl.quotas.userset.attempt()) return;
cl.user.name = msg.set.name; cl.user.name = msg.set.name;
let user = new User(cl); let user = new User(cl);
Database.getUserData().then((usr) => { Database.getUserData(cl, cl.server).then((usr) => {
let dbentry = user.userdb.get(cl.user._id); let dbentry = user.userdb.get(cl.user._id);
if (!dbentry) return; if (!dbentry) return;
dbentry.name = msg.set.name; dbentry.name = msg.set.name;

View File

@ -129,7 +129,9 @@ class Room extends EventEmitter {
} }
this.connections.forEach((usr) => { 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()); this.server.updateRoom(this.fetchData());