mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
remove line leftover from debugging
This commit is contained in:
parent
fb027fe2af
commit
afd003b905
@ -18,7 +18,6 @@ import { Protection } from "./IProtection";
|
|||||||
import { NumberProtectionSetting } from "./ProtectionSettings";
|
import { NumberProtectionSetting } from "./ProtectionSettings";
|
||||||
import { Mjolnir } from "../Mjolnir";
|
import { Mjolnir } from "../Mjolnir";
|
||||||
import { LogLevel, LogService } from "matrix-bot-sdk";
|
import { LogLevel, LogService } from "matrix-bot-sdk";
|
||||||
import { Consequence, ConsequenceType } from "./consequence";
|
|
||||||
import config from "../config";
|
import config from "../config";
|
||||||
|
|
||||||
// if this is exceeded, we'll ban the user for spam and redact their messages
|
// if this is exceeded, we'll ban the user for spam and redact their messages
|
||||||
@ -92,7 +91,5 @@ export class BasicFlooding extends Protection {
|
|||||||
if (forUser.length > this.settings.maxPerMinute.value * 2) {
|
if (forUser.length > this.settings.maxPerMinute.value * 2) {
|
||||||
forUser.splice(0, forUser.length - (this.settings.maxPerMinute.value * 2) - 1);
|
forUser.splice(0, forUser.length - (this.settings.maxPerMinute.value * 2) - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Consequence(ConsequenceType.ban, "flooding");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user