From eba4a9a4a1293d8f1a54df1b0ecdceb505dd06b3 Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 17 Feb 2018 18:06:30 +0000 Subject: [PATCH] votequiet on already polled user adds yes vote --- modules/kick/commands.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/kick/commands.js b/modules/kick/commands.js index 082e646..90ad0fe 100644 --- a/modules/kick/commands.js +++ b/modules/kick/commands.js @@ -339,7 +339,11 @@ var commands = function(dbot) { if(this.voteQuiets[user.id].spent) { event.reply('A votequiet attempt has already been made on this user in the last 10 minutes.'); } else { - event.reply('There is already a votequiet attempt active for this user.'); + var vq = this.voteQuiets[user.id] + vq.yes.push(event.rUser.primaryNick); + + event.reply('There is already a votequiet attempt active for this user, adding yes vote to existing poll.'); + event.reply('Voted yes on votequiet for ' + target + '. New count: Yes (' + vq.yes.length + '). No (' + vq.no.length + ').'); } } } else {