From 3a76d9a28e83b7571261348a7342276d0e52f3f0 Mon Sep 17 00:00:00 2001 From: Kinglykrab <89047260+Kinglykrab@users.noreply.github.com> Date: Sun, 3 Oct 2021 13:06:31 -0400 Subject: [PATCH] [Bug Fix] Dialogue Window Name replace. (#1581) {name} was being replaced with the string "$name" because Perl would parse it properly, but when used here it doesn't return the client's name. --- zone/dialogue_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/dialogue_window.cpp b/zone/dialogue_window.cpp index f9a42d26c..38c530494 100644 --- a/zone/dialogue_window.cpp +++ b/zone/dialogue_window.cpp @@ -26,7 +26,7 @@ void DialogueWindow::Render(Client *c, std::string markdown) find_replace(output, "{gray}", ""); find_replace(output, "{tan}", ""); find_replace(output, "{bullet}", "•"); - find_replace(output, "{name}", "$name"); + find_replace(output, "{name}", fmt::format("{}", c->GetCleanName())); find_replace(output, "{linebreak}", "--------------------------------------------------------------------"); find_replace(output, "{rowpad}", R"({tdpad}<"td>{tdpad}<"td><"tr>)"); find_replace(output, "{tdpad}", "----------------------");