Skip to content

Commit

Permalink
Merge pull request #99 from 00-kat/escape-underscores
Browse files Browse the repository at this point in the history
Escape underscores in username when ghost-pinging
  • Loading branch information
trag1c authored Jan 1, 2025
2 parents 03cd334 + 6cfd02a commit 5e10346
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/components/move_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,8 @@ async def ghostping(
) -> None:
await interaction.response.defer(ephemeral=True)
await (await self._channel.send(self._author.mention)).delete()
await interaction.followup.send(
f"Ghostpinged {self._author.name}.", ephemeral=True
)
escaped_name = self._author.name.replace("_", "\\_")
await interaction.followup.send(f"Ghostpinged {escaped_name}.", ephemeral=True)


class HelpPostTitle(discord.ui.Modal, title="Turn into #help post"):
Expand Down

0 comments on commit 5e10346

Please sign in to comment.