increase to 10

This commit is contained in:
Will Hunt 2024-09-19 15:59:06 +01:00
parent fa9a17cf44
commit 4ee523e2c0

View File

@ -19,13 +19,13 @@ import { Mjolnir } from "../Mjolnir";
import { LogLevel, Permalinks, UserID } from "matrix-bot-sdk"; import { LogLevel, Permalinks, UserID } from "matrix-bot-sdk";
import { NumberProtectionSetting } from "./ProtectionSettings"; import { NumberProtectionSetting } from "./ProtectionSettings";
export const DEFAULT_MAX_MENTIONS = 8; export const DEFAULT_MAX_MENTIONS = 10;
const USER_ID_REGEX = /@[^:]*:.+/; const USER_ID_REGEX = /@[^:]*:.+/;
export class MentionSpam extends Protection { export class MentionSpam extends Protection {
settings = { settings = {
maxMentions: new NumberProtectionSetting(DEFAULT_MAX_MENTIONS), maxMentionsRedact: new NumberProtectionSetting(DEFAULT_MAX_MENTIONS),
}; };
constructor() { constructor() {