Add more @readonly and clean up some stuff

This commit is contained in:
Schuyler Cebulskie
2016-09-27 20:07:33 -04:00
parent 1a3f5ca6a9
commit 973dbe8266
11 changed files with 31 additions and 21 deletions

View File

@@ -148,19 +148,13 @@ class ClientUser extends User {
if (data.game) {
game = data.game;
if (game.url) {
game.type = 1;
}
}
if (typeof data.afk !== 'undefined') {
afk = data.afk;
if (game.url) game.type = 1;
}
if (typeof data.afk !== 'undefined') afk = data.afk;
afk = Boolean(afk);
this.localPresence = { status, game, afk };
this.localPresence.since = 0;
this.client.ws.send({