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");