From 94cba2e72ee64902483707b657ae34585ccb8aee Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Fri, 12 Jul 2013 21:05:57 -0400 Subject: [PATCH] Fix drink counter not resetting after each video --- channel.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/channel.js b/channel.js index e2dcab49..9b8e0e87 100644 --- a/channel.js +++ b/channel.js @@ -980,6 +980,8 @@ Channel.prototype.broadcastDrinks = function() { Channel.prototype.onVideoChange = function () { this.voteskip = false; this.broadcastVoteskipUpdate(); + this.drinks = 0; + this.broadcastDrinks(); } // The server autolead function