From 73c3166912923670e5852f306ac8981bca9f844e Mon Sep 17 00:00:00 2001 From: Davide Fantino <80767709+fantinodavide@users.noreply.github.com> Date: Wed, 1 Mar 2023 13:04:54 +0100 Subject: [PATCH] fix: not-tested. multiple discord alerts --- mapvote.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mapvote.js b/mapvote.js index 0423b0a..71c151a 100644 --- a/mapvote.js +++ b/mapvote.js @@ -683,6 +683,8 @@ export default class MapVote extends DiscordBasePlugin { } async endVotingGently(steamID = null) { + if (!this.votingEnabled) return; + this.endVoting(); if (steamID) await this.warn(steamID, "Voting terminated!");