forked from Hri7566/mpp-server-dev2
dis
This commit is contained in:
parent
ae1cc86e45
commit
4393421fab
|
@ -189,8 +189,9 @@ module.exports = (cl) => {
|
||||||
if (msg.set.name.length > 40) return;
|
if (msg.set.name.length > 40) return;
|
||||||
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 data = Database.getUserData(cl, cl.server);
|
||||||
Database.getUserData().then((usr) => {
|
let user = new User(cl, data);
|
||||||
|
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;
|
||||||
|
|
Loading…
Reference in New Issue