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:
Aaron Kimbrell
2026-09-29 18:22:32 -05:00
parent af54ca282f
commit ffeb742c82
3 changed files with 27 additions and 8 deletions

View File

@@ -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) {