diff --git a/modules/poll.js b/modules/poll.js index 867ed2a..75a55f5 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].votes.hasOwnProperty(vote)) { if(polls[name].votees.hasOwnProperty(event.user)) { var oldVote = polls[name].votees[event.user]; polls[name].votes[oldVote]--;