Skip to content

Commit

Permalink
Protect lists after creation. (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnuxie authored Apr 10, 2024
1 parent 4c77574 commit 86d1605
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/commands/CreateBanListCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 86d1605

Please sign in to comment.