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() {