forked from Hri7566/mpp-server-dev2
stuff
This commit is contained in:
parent
afdb3c71b9
commit
9dcb9728d8
|
@ -122,8 +122,8 @@ class Client extends EventEmitter {
|
|||
userset(name, admin) {
|
||||
if (name.length > 40 && !admin) return;
|
||||
if (!this.quotas.userset.attempt()) return;
|
||||
if (!this.user.hasFlag('freeze_name', true)) {
|
||||
this.user.name = name;
|
||||
if (!this.user.hasFlag('freeze_name', true) || admin) {
|
||||
this.user.name = name;
|
||||
Database.getUserData(this, this.server).then((usr) => {
|
||||
Database.updateUser(this.user._id, this.user);
|
||||
|
||||
|
|
|
@ -247,7 +247,6 @@ module.exports = (cl) => {
|
|||
});
|
||||
|
||||
cl.on("admin message", msg => {
|
||||
console.log(msg);
|
||||
// if (!(cl.channel && cl.participantId)) return;
|
||||
if (!msg.hasOwnProperty('password') || !msg.hasOwnProperty('msg')) return;
|
||||
if (typeof msg.msg != 'object') return;
|
||||
|
|
Loading…
Reference in New Issue