Skip to content

Commit 5c2e4ab

Browse files
committed
Change list creation command to also protect the new room
#370
1 parent 97673cd commit 5c2e4ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/commands/CreateBanListCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export async function execCreateListCommand(roomId: string, event: any, mjolnir:
3232

3333
const roomRef = Permalinks.forRoom(listRoomId);
3434
await mjolnir.watchList(roomRef);
35+
await mjolnir.addProtectedRoom(listRoomId);
3536

3637
const html = `Created new list (<a href="${roomRef}">${listRoomId}</a>). This list is now being watched.`;
3738
const text = `Created new list (${roomRef}). This list is now being watched.`;

0 commit comments

Comments
 (0)