fix?
This commit is contained in:
parent
e05ee04a09
commit
b31179eee8
|
@ -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(cl, cl.server).then((usr) => {
|
||||
Database.getUserData().then((usr) => {
|
||||
let dbentry = user.userdb.get(cl.user._id);
|
||||
if (!dbentry) return;
|
||||
dbentry.name = msg.set.name;
|
||||
|
|
|
@ -3,7 +3,7 @@ const Database = require("./Database");
|
|||
class User {
|
||||
constructor(cl, data) {
|
||||
this.server = cl.server;
|
||||
this.name = typeof(data.name) == 'string' ? data.name : "Anonymous";
|
||||
this.name = data.name;
|
||||
this._id = data._id;
|
||||
this.color = data.color;
|
||||
this.ip = data.ip;
|
||||
|
|
Loading…
Reference in New Issue