From b69b5cb4eb9a60356062ab5304759f31e059fc8c Mon Sep 17 00:00:00 2001 From: Regalijan Date: Tue, 31 Mar 2026 01:32:48 -0400 Subject: [PATCH] Block repeat offenders from appealing --- functions/api/game-appeals/precheck.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/functions/api/game-appeals/precheck.ts b/functions/api/game-appeals/precheck.ts index 675e955..661cd05 100644 --- a/functions/api/game-appeals/precheck.ts +++ b/functions/api/game-appeals/precheck.ts @@ -78,6 +78,16 @@ export default async function ( ).toLocaleString()} to submit an appeal`, }; + if ( + userLogs.results.find((r: Record) => + r.action.startsWith("accept appeal"), + ) + ) + return { + can_appeal: false, + reason: "We do not accept appeals from repeat offenders", + }; + const types: string[] = []; if (banList[user].BanType) types.push("ban");