mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
increase to 10
This commit is contained in:
parent
fa9a17cf44
commit
4ee523e2c0
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user