Bad idle logic error

This commit is contained in:
abalabahaha
2016-01-06 21:39:05 -08:00
parent c7b632d854
commit 8a8ba51c2b
2 changed files with 6 additions and 6 deletions

View File

@@ -1010,10 +1010,10 @@ var InternalClient = (function () {
if (idleStatus === "online" || idleStatus === "here" || idleStatus === "available") {
this.idleStatus = null;
} else if (this.idleStatus === "idle" || this.idleStatus === "away") {
packet.d.idle_since = Date.now();
} else if (idleStatus === "idle" || idleStatus === "away") {
this.idleStatus = Date.now();
} else {
this.idleStatus = this.idleStatus || null; //undefineds
this.idleStatus = this.idleStatus || null; //undefined
}
this.game = game === null ? null : game || this.game;