Add Chat Formatting Support For Servers (#1483)

This commit is contained in:
DrPerkyLegit
2026-04-13 00:49:49 -05:00
committed by itsRevela
parent ae9dbd837d
commit 71707fbb8c
11 changed files with 128 additions and 12 deletions

View File

@@ -969,7 +969,7 @@ void PlayerConnection::handleChat(shared_ptr<ChatPacket> packet)
}
#else
wstring formatted = L"<" + player->name + L"> " + message;
server->getPlayers()->broadcastAll(shared_ptr<ChatPacket>(new ChatPacket(formatted)));
server->getPlayers()->broadcastAll(shared_ptr<ChatPacket>(new ChatPacket(app.FormatChatMessage(formatted, false))));
#endif
chatSpamTickCount += SharedConstants::TICKS_PER_SECOND;
if (chatSpamTickCount > SharedConstants::TICKS_PER_SECOND * 10)