remove line leftover from debugging

This commit is contained in:
jesopo 2022-03-21 13:54:49 +00:00 committed by Jess Porter
parent fb027fe2af
commit afd003b905

View File

@ -18,7 +18,6 @@ import { Protection } from "./IProtection";
import { NumberProtectionSetting } from "./ProtectionSettings";
import { Mjolnir } from "../Mjolnir";
import { LogLevel, LogService } from "matrix-bot-sdk";
import { Consequence, ConsequenceType } from "./consequence";
import config from "../config";
// 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) {
forUser.splice(0, forUser.length - (this.settings.maxPerMinute.value * 2) - 1);
}
return new Consequence(ConsequenceType.ban, "flooding");
}
}