diff --git a/src/actions/ApplyBan.ts b/src/actions/ApplyBan.ts index 0b2ac1c..ef49f47 100644 --- a/src/actions/ApplyBan.ts +++ b/src/actions/ApplyBan.ts @@ -65,7 +65,7 @@ export async function applyUserBans(lists: BanList[], roomIds: string[], mjolnir // User needs to be banned // We specifically use sendNotice to avoid having to escape HTML - await logMessage(LogLevel.DEBUG, "ApplyBan", `Banning ${member.userId} in ${roomId} for: ${userRule.reason}`); + await logMessage(LogLevel.INFO, "ApplyBan", `Banning ${member.userId} in ${roomId} for: ${userRule.reason}`); if (!config.noop) { // Always prioritize redactions above bans @@ -96,16 +96,5 @@ export async function applyUserBans(lists: BanList[], roomIds: string[], mjolnir } } - if (bansApplied > 0) { - const html = `Banned ${bansApplied} people`; - const text = `Banned ${bansApplied} people`; - await mjolnir.client.sendMessage(config.managementRoom, { - msgtype: "m.notice", - body: text, - format: "org.matrix.custom.html", - formatted_body: html, - }); - } - return errors; }