Skip to content

Commit

Permalink
show room ID in consequence log
Browse files Browse the repository at this point in the history
  • Loading branch information
jesopo committed Mar 21, 2022
1 parent afd003b commit fccb462
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Mjolnir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,9 @@ export class Mjolnir {
break;
}

let message = `protection ${protection.name} enacting ${ConsequenceType[consequence.type]} against ${htmlEscape(sender)}`;
let message = `protection ${protection.name} enacting ${ConsequenceType[consequence.type]}`
+ ` against ${htmlEscape(sender)}`
+ ` in ${htmlEscape(roomId)}`;
if (consequence.reason !== undefined) {
// even though internally-sourced, there's no promise that `consequence.reason`
// will never have user-supplied information, so escape it
Expand Down

0 comments on commit fccb462

Please sign in to comment.