This commit is contained in:
Hri7566 2021-04-13 17:38:29 -04:00
parent 144008174a
commit 30fca53c72
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ const Database = require("./Database");
class User { class User {
constructor(cl, data) { constructor(cl, data) {
this.server = cl.server; this.server = cl.server;
this.name = data.name; this.name = typeof(data.name) == 'string' ? data.name : "Anonymous";
this._id = data._id; this._id = data._id;
this.color = data.color; this.color = data.color;
this.ip = data.ip; this.ip = data.ip;