Skip to content

fix: Replace welcome text to use fmt-style placeholders - #26

Merged
Helias merged 1 commit into
azerothcore:masterfrom
sogladev:fix-fmt
Mar 31, 2026
Merged

fix: Replace welcome text to use fmt-style placeholders#26
Helias merged 1 commit into
azerothcore:masterfrom
sogladev:fix-fmt

Conversation

@sogladev

Copy link
Copy Markdown
Member

Changes Proposed:

May fix runtime issues when using special characters like Lok’tar ogar in welcome text.

Replaces angle bracket placeholders in guild welcome messages with curly braces and updates substitution logic to use fmt for safer, clearer formatting.
Improves flexibility and reduces risks from manual string replacement.

Issues Addressed:

  • Closes

Crash on my local setup for only Horde characters on line:

welcome_text = std::regex_replace(welcome_text, std::regex("<GUILD>"), player->GetGuildName());
with vars
m_name "Guardians of Honor"
welcome_text "Lok’tar ogar! Welcome to the horde starter guild <GUILD> <PLAYER>."

SOURCE:

Tests Performed:

How to Test the Changes:

May fix runtime issues when using special characters like `Lok’tar ogar`

Replaces angle bracket placeholders in guild welcome messages with curly
braces and updates substitution logic to use fmt for safer, clearer
formatting.
Improves flexibility and reduces risks from manual string replacement.
@Helias
Helias merged commit c3c97bc into azerothcore:master Mar 31, 2026
1 check passed
@sogladev
sogladev deleted the fix-fmt branch April 3, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants