From 2256941af73b77d540de4b3fa74351f45ac0deee Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Mon, 26 Oct 2026 04:23:25 +0100 Subject: [PATCH] Chat: mod output lines are the client's own Main's mod output calls Chat::add without the new source; a mod's line is written by this client, so the Chat option keeps it. Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/src/game/mods.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/crates/horizon-client/src/game/mods.rs b/crates/horizon-client/src/game/mods.rs index 667c06335..fbf92237d 100644 --- a/crates/horizon-client/src/game/mods.rs +++ b/crates/horizon-client/src/game/mods.rs @@ -454,10 +454,16 @@ impl Game<'_> { } }; // Not through system_message: a mod must not hear its own lines. + // Written by this client, so the Chat option doesn't hide it. let focused = self.screen == Screen::Chat; - self.ui - .chat - .add(&self.gui.atlas, line, None, self.ticks, focused); + self.ui.chat.add( + &self.gui.atlas, + line, + None, + horizon_client::chat::ChatSource::Client, + self.ticks, + focused, + ); } // A mod may set or clear its settings page in any call, not only // while loading: its row's Settings button follows.