mirror of
https://github.com/reality/dbot.git
synced 2024-11-30 16:09:27 +01:00
fucking typo
This commit is contained in:
parent
881834978d
commit
c018e338dc
@ -37,7 +37,7 @@ var poll = function(dbot) {
|
|||||||
var vote = event.input[2];
|
var vote = event.input[2];
|
||||||
|
|
||||||
if(polls.hasOwnProperty(name)) {
|
if(polls.hasOwnProperty(name)) {
|
||||||
if(!polls[name].votes.hasOwnProperty(vote)) {
|
if(polls[name].votes.hasOwnProperty(vote)) {
|
||||||
if(polls[name].votees.hasOwnProperty(event.user)) {
|
if(polls[name].votees.hasOwnProperty(event.user)) {
|
||||||
var oldVote = polls[name].votees[event.user];
|
var oldVote = polls[name].votees[event.user];
|
||||||
polls[name].votes[oldVote]--;
|
polls[name].votes[oldVote]--;
|
||||||
|
Loading…
Reference in New Issue
Block a user