Skip to content

Commit

Permalink
policyeval: fix no-op change message
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Sep 15, 2024
1 parent cef8624 commit 2d5eb93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions policyeval/eventhandle.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ func (pe *PolicyEvaluator) HandlePolicyListChange(ctx context.Context, policyRoo
if removedAndAddedAreEquivalent {
if removed.Reason == added.Reason {
pe.sendNotice(ctx,
"[%s] [%s](%s) re-banned `%s` for `%s`",
"[%s] [%s](%s) re-%s `%s` for `%s`",
policyRoomMeta.Name, added.Sender, added.Sender.URI().MatrixToURL(),
changeActionString(added.Recommendation), added.Entity, added.Reason)
addActionString(added.Recommendation), added.Entity, added.Reason)
} else {
pe.sendNotice(ctx,
"[%s] [%s](%s) changed the %s reason for `%s` from `%s` to `%s`",
Expand Down

0 comments on commit 2d5eb93

Please sign in to comment.