diff options
author | 2023-04-05 02:15:58 +0300 | |
---|---|---|
committer | 2023-04-05 02:15:58 +0300 | |
commit | 43e2a77a3ad82579753cc0fd7415f24a4dbbdea3 (patch) | |
tree | 814c807fadfb106da03b5cb1d03a45b3d7da8ac6 | |
parent | `domain/subdomains` -> `domain/only_subdomains` for clarity (diff) |
Escape markdown in alert matches
-rw-r--r-- | bot/exts/filtering/_ui/ui.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/filtering/_ui/ui.py b/bot/exts/filtering/_ui/ui.py index 859a1eff7..7ef21a5ce 100644 --- a/bot/exts/filtering/_ui/ui.py +++ b/bot/exts/filtering/_ui/ui.py @@ -102,7 +102,7 @@ async def build_mod_alert(ctx: FilterContext, triggered_filters: dict[FilterList filters.append(f"**{filter_list.name.title()} Filters:** {', '.join(list_message)}") filters = "\n".join(filters) - matches = "**Matches:** " + ", ".join(repr(match) for match in ctx.matches) if ctx.matches else "" + matches = "**Matches:** " + escape_markdown(", ".join(repr(match) for match in ctx.matches)) if ctx.matches else "" actions = "\n**Actions Taken:** " + (", ".join(ctx.action_descriptions) if ctx.action_descriptions else "-") mod_alert_message = "\n".join(part for part in (triggered_by, triggered_in, filters, matches, actions) if part) |