Skip to content

Commit c1f89c3

Browse files
committed
fix(chat): Fix New Lines
1 parent a7fbeec commit c1f89c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/entrypoint.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ void Swiftly::Hook_DispatchConCommand(ConCommandHandle cmd, const CCommandContex
535535
if (player->tag.length() > 0)
536536
msg.push_back(ProcessColor(string_format("%s%s{default}", player->tagcolor.empty() ? "{default}" : player->tagcolor.c_str(), player->tag.c_str()), controller->m_iTeamNum()));
537537
msg.push_back(string_format("%s%s%s:", ProcessColor(player->namecolor, controller->m_iTeamNum()).c_str(), player->GetName(), ProcessColor("{default}", CS_TEAM_CT).c_str()));
538-
msg.push_back(string_format("%s%s", ProcessColor(player->chatcolor, controller->m_iTeamNum()).c_str(), text.c_str()));
538+
msg.push_back(string_format("%s%s", ProcessColor(player->chatcolor, controller->m_iTeamNum()).c_str(), replace(text, "\n", "\u2029").c_str()));
539539

540540
std::string formatted_msg = (" " + implode(msg, " "));
541541

0 commit comments

Comments
 (0)