Log a chat message once
`chat_line` logged `[chat]` and then `Chat::add_message` logged `[CHAT]` for the same message, so every line appeared twice, and the `[chat]` copy slipped past the `[CHAT]` filter `log_for_report` uses to keep chat out of an attached log. Vanilla's `ChatComponent.logChatMessage` writes the one line `add_message` already writes, so the `chat_line` call is the leftover. Fixes #3261 Co-Authored-By: Hermes Agent (Nous Research) <noreply@nousresearch.com>
This commit is contained in:
@@ -700,7 +700,6 @@ impl Game<'_> {
|
||||
return;
|
||||
}
|
||||
let text = content.plain();
|
||||
log::info!("[chat] {text}");
|
||||
// addServerSystemMessage and addClientSystemMessage both carry
|
||||
// GuiMessageTag.systemSinglePlayer: the grey bar at the line's left.
|
||||
let indicator = (source != horizon_client::chat::ChatSource::Player)
|
||||
|
||||
Reference in New Issue
Block a user