From 881834978d09fe0968d43b8dd77f9eec91801ff0 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Fri, 15 Jun 2012 17:30:54 +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 22e687e..867ed2a 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].votees.hasOwnProperty(vote)) { + if(!polls[name].votes.hasOwnProperty(vote)) { if(polls[name].votees.hasOwnProperty(event.user)) { var oldVote = polls[name].votees[event.user]; polls[name].votes[oldVote]--;