Skip to content

Discord notification sometimes adds a backslash to the player's name #117

@BadgerCode

Description

@BadgerCode

Actual name: dethrise_TTV
image

Actual name: Ducky [Bomb]
image

This might be something related to markdown characters.

There is a regex used on the victim/attackers name, which may be causing the problem
https://github.com/BadgerCode/tttdamagelogs/blob/master/lua/damagelogs/server/discord.lua#L57-L61

discordUpdate.victim.nick:gsub("([%*_~<>\\@%]])", "\\%1")

-- This is used inside link markdown
-- [Player name](https://link-to-profile)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions