From cfb00d3588f4e31e6706d162ca76f1812fedcf87 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Fri, 15 Jun 2012 17:29:38 +0100 Subject: [PATCH] fucking typo --- modules/poll.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/poll.js b/modules/poll.js index 75a55f5..22e687e 100644 --- a/modules/poll.js +++ b/modules/poll.js @@ -37,7 +37,7 @@ var poll = function(dbot) { var vote = event.input[2]; if(polls.hasOwnProperty(name)) { - if(polls[name].votes.hasOwnProperty(vote)) { + if(polls[name].votees.hasOwnProperty(vote)) { if(polls[name].votees.hasOwnProperty(event.user)) { var oldVote = polls[name].votees[event.user]; polls[name].votes[oldVote]--;