From fc163edb3ee4b8fe7627f5eb11927d35d5936adf Mon Sep 17 00:00:00 2001 From: gnuxie Date: Thu, 7 Dec 2023 16:25:53 +0000 Subject: [PATCH] Remove status command from protections for now. We will replace them with protection specific command tables later. --- src/protections/JoinWaveShortCircuit.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/protections/JoinWaveShortCircuit.tsx b/src/protections/JoinWaveShortCircuit.tsx index 2eb1eeb8..114dc010 100644 --- a/src/protections/JoinWaveShortCircuit.tsx +++ b/src/protections/JoinWaveShortCircuit.tsx @@ -25,11 +25,10 @@ limitations under the License. * are NOT distributed, contributed, committed, or licensed under the Apache License. */ -import { AbstractProtection, ActionResult, ConsequenceProvider, Logger, MembershipChange, MembershipChangeType, Ok, ProtectedRoomsSet, Protection, ProtectionDescription, RoomMembershipRevision, SafeIntegerProtectionSetting, StandardProtectionSettings, StringRoomID, describeProtection, isError } from "matrix-protection-suite"; +import { AbstractProtection, ActionResult, ConsequenceProvider, Logger, MembershipChange, MembershipChangeType, Ok, ProtectedRoomsSet, ProtectionDescription, RoomMembershipRevision, SafeIntegerProtectionSetting, StandardProtectionSettings, StringRoomID, describeProtection, isError } from "matrix-protection-suite"; import {LogLevel} from "matrix-bot-sdk"; import { Draupnir } from "../Draupnir"; import { DraupnirProtection } from "./Protection"; -import { DocumentNode } from "../commands/interface-manager/DeadDocument"; const log = new Logger('JoinWaveShortCircuitProtection'); @@ -139,6 +138,11 @@ export class JoinWaveShortCircuitProtection extends AbstractProtection implement return (this.settings.timescaleMinutes * ONE_MINUTE) } + /** + * Yeah i know this is evil but + * We need to figure this out once we allow protections to have their own + * command tables somehow. + * which will probably entail doing the symbol case hacks from Utena for camel case etc. public async status(keywords, subcommands): Promise { const withExpired = subcommand.includes("withExpired"); const withStart = subcommand.includes("withStart"); @@ -168,4 +172,5 @@ export class JoinWaveShortCircuitProtection extends AbstractProtection implement text, } } + */ }