diff --git a/src/matrixcommandhandler.ts b/src/matrixcommandhandler.ts index 536b2b7002374ad6ebbf93d9c3d72773df1f8baa..2f20f9696707816e68d53cfc7028072f140e48e8 100644 --- a/src/matrixcommandhandler.ts +++ b/src/matrixcommandhandler.ts @@ -84,11 +84,7 @@ export class MatrixCommandHandler { } if (await this.provisioner.RoomCountLimitReached(this.config.limits.roomCount)) { log.info(`Room count limit (value: ${this.config.limits.roomCount}) reached: Rejecting command to bridge new matrix room ${event.room_id} to ${guildId}/${channelId}`); - await this.bridge.botIntent.sendText( - event.room_id, - `This bridge has reached its room limit of ${this.config.limits.roomCount}. Unbridge another room to allow for new connections.`, - "m.notice", - ); + return `This bridge has reached its room limit of ${this.config.limits.roomCount}. Unbridge another room to allow for new connections.`; } try { const discordResult = await this.discord.LookupRoom(guildId, channelId);