Skip to content
Snippets Groups Projects
Commit 3e9ac338 authored by Ophestra's avatar Ophestra
Browse files

escape . as well

parent 5836f326
No related branches found
No related tags found
No related merge requests found
......@@ -152,6 +152,7 @@ func discordHandleCreate(session *discordgo.Session, create *discordgo.MessageCr
msg.Text = strings.ReplaceAll(msg.Text, "*", "\\*")
msg.Text = strings.ReplaceAll(msg.Text, "[", "\\[")
msg.Text = strings.ReplaceAll(msg.Text, "`", "\\`")
msg.Text = strings.ReplaceAll(msg.Text, ".", "\\.")
msg.Text = discordMakeHeader(create.Author) + msg.Text
if m, err := botAPI.Send(msg); err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment