Specify a default ban reason

Fixes https://github.com/matrix-org/mjolnir/issues/20
This commit is contained in:
Travis Ralston
2020-02-13 13:50:17 -07:00
parent 90cc3d01b4
commit 8465a1ed78
+1 -1
View File
@@ -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}`;