From 86d1605bfa1c8fc7909b96ffe79ecb71fb5416d3 Mon Sep 17 00:00:00 2001 From: Gnuxie <50846879+Gnuxie@users.noreply.github.com> Date: Wed, 10 Apr 2024 21:25:32 +0100 Subject: [PATCH] Protect lists after creation. (#332) --- src/commands/CreateBanListCommand.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/commands/CreateBanListCommand.ts b/src/commands/CreateBanListCommand.ts index c414c30a..afb1de36 100644 --- a/src/commands/CreateBanListCommand.ts +++ b/src/commands/CreateBanListCommand.ts @@ -54,6 +54,10 @@ export async function createList( if (isError(watchResult)) { return watchResult; } + const protectResult = await this.draupnir.protectedRoomsSet.protectedRoomsConfig.addRoom(newList.ok); + if (isError(protectResult)) { + return protectResult; + } return newList; }