From 022fda3d1c9e4b65fe7bf07211045a2e06984358 Mon Sep 17 00:00:00 2001 From: h2v4c Date: Wed, 25 Jan 2017 12:54:04 -0600 Subject: [PATCH] Update voteskip.js fixed an issue where the voteskip socket emit would send {0 count, 0 need} upon voteskip passing --- src/channel/voteskip.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/channel/voteskip.js b/src/channel/voteskip.js index 8f150288..b2ef9069 100644 --- a/src/channel/voteskip.js +++ b/src/channel/voteskip.js @@ -75,14 +75,14 @@ VoteskipModule.prototype.update = function () { return; } + this.sendVoteskipData(this.channel.users); + var max = this.calcVoteskipMax(); var need = Math.ceil(max * this.channel.modules.options.get("voteskip_ratio")); if (this.poll.counts[0] >= need) { this.channel.logger.log("[playlist] Voteskip passed."); this.channel.modules.playlist._playNext(); } - - this.sendVoteskipData(this.channel.users); }; VoteskipModule.prototype.sendVoteskipData = function (users) {