forked from Hri7566/mpp-server-dev2
fix user
This commit is contained in:
parent
144008174a
commit
30fca53c72
|
@ -3,7 +3,7 @@ const Database = require("./Database");
|
|||
class User {
|
||||
constructor(cl, data) {
|
||||
this.server = cl.server;
|
||||
this.name = data.name;
|
||||
this.name = typeof(data.name) == 'string' ? data.name : "Anonymous";
|
||||
this._id = data._id;
|
||||
this.color = data.color;
|
||||
this.ip = data.ip;
|
||||
|
|
Loading…
Reference in New Issue