show room ID in consequence log

This commit is contained in:
jesopo authored and Jess Porter committed 2022-03-21 14:25:12 +00:00
1 parent afd003b905
commit fccb4627ce
1 file changed
+3 -1
+3 -1
View File
@@ -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