mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
Warn about room level bans when using unban
https://github.com/matrix-org/mjolnir/issues/394
This commit is contained in:
parent
a970733d0b
commit
1c42e1ef7a
@ -157,6 +157,8 @@ export async function execUnbanCommand(roomId: string, event: any, mjolnir: Mjol
|
||||
await mjolnir.managementRoomOutput.logMessage(LogLevel.DEBUG, "UnbanBanCommand", `Syncing lists to ensure no users were accidentally unbanned`);
|
||||
await mjolnir.protectedRoomsTracker.syncLists(mjolnir.config.verboseLogging);
|
||||
}
|
||||
} else if (USER_RULE_TYPES.includes(bits.ruleType!) && bits.reason === 'false') {
|
||||
await mjolnir.managementRoomOutput.logMessage(LogLevel.WARN, "UnbanBanCommand", "Running unban without `unban <list> <user> true` will not override existing room level bans");
|
||||
}
|
||||
|
||||
await mjolnir.client.unstableApis.addReactionToEvent(roomId, event['event_id'], '✅');
|
||||
|
Loading…
Reference in New Issue
Block a user