Skip to content
Extraits de code Groupes Projets
Valider 7ed83b7d rédigé par Christian Paul's avatar Christian Paul
Parcourir les fichiers

Restrict people from bridging rooms after the limit has been reached

parent bb61edb5
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter