From 2574e4a1ae9fd0615afcaf7f53369f37b8836ce0 Mon Sep 17 00:00:00 2001 From: Christian Paul <christianp@matrix.org> Date: Fri, 8 Jan 2021 12:25:06 +0100 Subject: [PATCH] Fix RoomCountLimitReached condition --- src/provisioner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/provisioner.ts b/src/provisioner.ts index 50c3fec..fee34cd 100644 --- a/src/provisioner.ts +++ b/src/provisioner.ts @@ -46,7 +46,7 @@ export class Provisioner { * @returns Has the limit been reached? */ public async RoomCountLimitReached(limit: number): Promise<boolean> { - return limit >= 0 || limit >= await this.roomStore.countEntries(); + return limit >= 0 && limit >= await this.roomStore.countEntries(); } public async UnbridgeChannel(channel: Discord.TextChannel, rId?: string) { -- GitLab