Skip to content

Commit

Permalink
increase to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Sep 19, 2024
1 parent fa9a17c commit 4ee523e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/protections/MentionSpam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ import { Mjolnir } from "../Mjolnir";
import { LogLevel, Permalinks, UserID } from "matrix-bot-sdk";
import { NumberProtectionSetting } from "./ProtectionSettings";

export const DEFAULT_MAX_MENTIONS = 8;
export const DEFAULT_MAX_MENTIONS = 10;
const USER_ID_REGEX = /@[^:]*:.+/;

export class MentionSpam extends Protection {

settings = {
maxMentions: new NumberProtectionSetting(DEFAULT_MAX_MENTIONS),
maxMentionsRedact: new NumberProtectionSetting(DEFAULT_MAX_MENTIONS),
};

constructor() {
Expand Down

0 comments on commit 4ee523e

Please sign in to comment.