mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-09-16 23:54:19 +00:00
Specify a default ban reason
Fixes https://github.com/matrix-org/mjolnir/issues/20
This commit is contained in:
@@ -113,7 +113,7 @@ export async function execBanCommand(roomId: string, event: any, mjolnir: Mjolni
|
||||
const ruleContent = {
|
||||
entity: bits.entity,
|
||||
recommendation,
|
||||
reason: bits.reason,
|
||||
reason: bits.reason || '<no reason supplied>',
|
||||
};
|
||||
const stateKey = `rule:${bits.entity}`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user