From 4478f4e405f5bb74f52261d0583030ec83154e01 Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 16 Feb 2016 17:37:09 +0000 Subject: [PATCH] things --- modules/kick/commands.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/kick/commands.js b/modules/kick/commands.js index f16594e..039dcb5 100644 --- a/modules/kick/commands.js +++ b/modules/kick/commands.js @@ -324,6 +324,9 @@ var commands = function(dbot) { } if(_.has(this.voteQuiets, user.id) && !this.voteQuiets[user.id].spent) { var vq = this.voteQuiets[user.id]; + if(event.channel != vq.channel) { + return event.reply('Vote must be in ' + vq.channel); + } if(!_.include(vq.yes, event.rUser.primaryNick) && !_.include(vq.no, event.rUser.primaryNick)) { vq.yes.push(event.rUser.primaryNick); event.reply('Voted yes on votequiet for ' + target + '. New count: Yes (' + vq.yes.length + '). No (' + vq.no.length + ').'); @@ -349,6 +352,9 @@ var commands = function(dbot) { } if(_.has(this.voteQuiets, user.id) && !this.voteQuiets[user.id].spent) { var vq = this.voteQuiets[user.id]; + if(event.channel != vq.channel) { + return event.reply('Vote must be in ' + vq.channel); + } if(!_.include(vq.yes, event.rUser.primaryNick) && !_.include(vq.no, event.rUser.primaryNick)) { vq.no.push(event.rUser.primaryNick); event.reply('Voted no on votequiet for ' + target + '. New count: Yes (' + vq.yes.length + '). No (' + vq.no.length + ').');