From 7d1637a2f0a61e6e98e374d249146c0a65b453bb Mon Sep 17 00:00:00 2001 From: ProofOfConcept Date: Fri, 3 Apr 2026 20:09:06 -0400 Subject: [PATCH] irc: create channel log entries on JOIN Channels now appear in list() immediately after joining, not only after the first message arrives. Co-Developed-By: Kent Overstreet --- channels/irc/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/channels/irc/src/main.rs b/channels/irc/src/main.rs index 8f41259..44e62df 100644 --- a/channels/irc/src/main.rs +++ b/channels/irc/src/main.rs @@ -408,6 +408,11 @@ async fn register_and_read( if let Err(e) = state.borrow_mut().send_raw(&format!("JOIN {ch}")).await { warn!("irc: failed to join {ch}: {e}"); } + // Create log entry so channel appears in list() + let key = format!("irc.{ch}"); + state.borrow_mut().channel_logs + .entry(key) + .or_insert_with(ChannelLog::new); } }