Add Chat Formatting Support For Servers (#1483)

This commit is contained in:
DrPerkyLegit authored and itsRevela committed 2026-04-13 00:49:49 -05:00
1 parent ae9dbd837d
commit 71707fbb8c
11 files changed
+128 -12

No files matched your search

+1 -1
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)