mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 10:53:44 +00:00
feat(chat): log each message's guild, team and filter result as it is sent
The chat server records the guild of guild chat, the team of team chat and what the chat filter thinks of whispers, team and guild chat (delivered either way). World servers mark filtered zone chat. Team IDs start from the chat server's start time so a restart doesn't hand out the same team ID again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1575,6 +1575,7 @@ namespace {
|
||||
entry.cloneId = Game::zoneManager->GetZoneID().GetCloneID();
|
||||
entry.message = GeneralUtils::UTF16ToWTF8(message);
|
||||
entry.blocked = !isOk;
|
||||
entry.filtered = !isOk;
|
||||
try {
|
||||
Database::Get()->InsertChatMessage(entry);
|
||||
} catch (const std::exception& ex) {
|
||||
|
||||
Reference in New Issue
Block a user