From 78b18de1e13ed1d463dd3900254ce967d83c9555 Mon Sep 17 00:00:00 2001 From: abalabahaha Date: Fri, 19 Feb 2016 00:02:08 -0800 Subject: [PATCH] Random nonexistent object reference fixed --- lib/Client/InternalClient.js | 4 ++-- src/Client/InternalClient.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Client/InternalClient.js b/lib/Client/InternalClient.js index 8b8915cbf..d3f2c26ef 100644 --- a/lib/Client/InternalClient.js +++ b/lib/Client/InternalClient.js @@ -1098,8 +1098,8 @@ var InternalClient = (function () { this.sendWS(packet); - this.bot.user.status = this.idleStatus; - this.bot.user.game = this.game; + this.user.status = this.idleStatus; + this.user.game = this.game; return Promise.resolve(); }; diff --git a/src/Client/InternalClient.js b/src/Client/InternalClient.js index 24fc079fc..cd1ea71fa 100644 --- a/src/Client/InternalClient.js +++ b/src/Client/InternalClient.js @@ -922,8 +922,8 @@ export default class InternalClient { this.sendWS(packet); - this.bot.user.status = this.idleStatus; - this.bot.user.game = this.game; + this.user.status = this.idleStatus; + this.user.game = this.game; return Promise.resolve();