wtf
This commit is contained in:
parent
f87b581941
commit
e10c557a8f
7
.env
7
.env
|
@ -1,7 +0,0 @@
|
||||||
ADMINPASS=bacon sandwich
|
|
||||||
SALT=๖ۣۜH͜r̬i͡7566
|
|
||||||
MONGO_URL=mongodb://7566:Phillies11@127.0.0.1/?authSource=admin&readPreference=primary&appname=MongoDB%20Compass&ssl=false
|
|
||||||
# MONGO_URL=mongodb://127.0.0.1:27017
|
|
||||||
SSL=true
|
|
||||||
|
|
||||||
MPPCLONE_TOKEN=056921b5199a52cf926baaed.15646cde-7a71-40d5-880c-5b283265c6fd
|
|
|
@ -121,9 +121,12 @@ class Client extends EventEmitter {
|
||||||
*/
|
*/
|
||||||
userset(name, admin) {
|
userset(name, admin) {
|
||||||
if (name.length > 40 && !admin) return;
|
if (name.length > 40 && !admin) return;
|
||||||
|
if (this.quotas.userset) {
|
||||||
if (!this.quotas.userset.attempt()) return;
|
if (!this.quotas.userset.attempt()) return;
|
||||||
|
}
|
||||||
if (!this.user.hasFlag('freeze_name', true) || admin) {
|
if (!this.user.hasFlag('freeze_name', true) || admin) {
|
||||||
this.user.name = name;
|
this.user.name = name;
|
||||||
|
if (!this.user.hasFlag('freeze_name', true)) {
|
||||||
Database.getUserData(this, this.server).then((usr) => {
|
Database.getUserData(this, this.server).then((usr) => {
|
||||||
Database.updateUser(this.user._id, this.user);
|
Database.updateUser(this.user._id, this.user);
|
||||||
|
|
||||||
|
@ -135,6 +138,7 @@ class Client extends EventEmitter {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set rate limits
|
* Set rate limits
|
||||||
|
|
Loading…
Reference in New Issue