Block repeat offenders from appealing
This commit is contained in:
@@ -78,6 +78,16 @@ export default async function (
|
||||
).toLocaleString()} to submit an appeal`,
|
||||
};
|
||||
|
||||
if (
|
||||
userLogs.results.find((r: Record<string, any>) =>
|
||||
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");
|
||||
|
||||
Reference in New Issue
Block a user