From 8a8ba51c2b77711c860dd62e8db0e613959a30a4 Mon Sep 17 00:00:00 2001 From: abalabahaha Date: Wed, 6 Jan 2016 21:39:05 -0800 Subject: [PATCH] Bad idle logic error --- lib/Client/InternalClient.js | 6 +++--- src/Client/InternalClient.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Client/InternalClient.js b/lib/Client/InternalClient.js index 6f2b572e5..d750396bf 100644 --- a/lib/Client/InternalClient.js +++ b/lib/Client/InternalClient.js @@ -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; diff --git a/src/Client/InternalClient.js b/src/Client/InternalClient.js index 2b55a64e0..1dcaaa52e 100644 --- a/src/Client/InternalClient.js +++ b/src/Client/InternalClient.js @@ -858,11 +858,11 @@ export default class InternalClient { 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;