fucking typo

This commit is contained in:
Luke Slater 2012-06-15 17:29:38 +01:00
parent 2e27d7dece
commit cfb00d3588

View File

@ -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]--;