From 0efba56390b00d2c935d0251eda4088890ec64b7 Mon Sep 17 00:00:00 2001 From: Hri7566 Date: Tue, 13 Apr 2021 17:50:06 -0400 Subject: [PATCH] pls --- src/Message.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Message.js b/src/Message.js index 5c360e1..7401b1a 100644 --- a/src/Message.js +++ b/src/Message.js @@ -189,13 +189,11 @@ module.exports = (cl) => { if (msg.set.name.length > 40) return; if(!cl.quotas.userset.attempt()) return; cl.user.name = msg.set.name; - let data = Database.getUserData(cl, cl.server); - let user = new User(cl, data); Database.getUserData(cl, cl.server).then((usr) => { let dbentry = Database.userdb.get(cl.user._id); if (!dbentry) return; dbentry.name = msg.set.name; - user.updatedb(); + Database.update(); cl.server.rooms.forEach((room) => { room.updateParticipant(cl.user._id, { name: msg.set.name