From 5497a868a3a64c20d3147a4927163a2dc9cd4e84 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Thu, 12 Sep 2013 16:26:45 -0500 Subject: [PATCH] Fix an error --- changelog | 4 ++++ lib/channel.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/changelog b/changelog index 57571d0e..0f2bcc23 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,7 @@ +Thu Sep 12 16:25 2013 CDT + * lib/channel.js: Fix an error resulting from calcVoteskipMax being run + when the usercount is 0 + Thu Sep 12 13:01 2013 CDT * lib/channel.js: Fix the XSS filter hack that allows style attributes to allow more than one in a chat filter replacement diff --git a/lib/channel.js b/lib/channel.js index 95157126..e894a024 100644 --- a/lib/channel.js +++ b/lib/channel.js @@ -1200,7 +1200,7 @@ Channel.prototype.calcVoteskipMax = function () { return u.meta.afk ? 0 : 1; }).reduce(function (a, b) { return a + b; - }); + }, 0); }; Channel.prototype.broadcastVoteskipUpdate = function() {